- This topic has 0 replies, 1 voice, and was last updated 17 years, 5 months ago by .
Viewing 0 reply threads
Viewing 0 reply threads
- The forum ‘C++ Programming’ is closed to new topics and replies.
Home › Forums › C++ Programming › error buildind visual c++ program
hey guys i’m learning visual c++ and i’m getting errors on building the following program.it’s from a book and so i expected it to run but it’s giving errors please tell me what they mean and how to get rid of them
code:
1 2 3 4 5 6 7 | <br /> #include<windows.h><br /> int_stdcall WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)<br /> {<br /> MessageBox(0,"Hello!","title",0);<br /> return(0);<br /> } |
error C2146: syntax error : missing ‘;’ before identifier ‘WinMain’
error C2501: ‘int_stdcall’ : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found
p.s. i did not install msdn library. does that affect?