c++ - Syntax error when choosing multiple UINT formats on MFC -
i have book programming windows mfc, second edition, jeff prosise, in first example error happens:
error c2146: syntax error : missing ')' before identifier '│'
in line:
dc.drawtext(_t("hello, mfc"), -1, &rect, dt_singleline │ dt_center │ dt_vcenter);
if choose 1 of 3 formats, no error occurs, although, program doesn't show text book says would, help? i've compiled other 2 examples in book , compiling quite fine.
thanks!
you've apparently typed code incorrectly. that's supposed vertical bar (which c , c++ use mean "bitwise or"). on keyboards, that's typically above enter key (i suspect may have entered 1 of line drawing characters in ibm extended character set instead, it's hard sure).
Comments
Post a Comment