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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -