error buildind visual c++ program

Home Forums C++ Programming error buildind visual c++ program

This topic contains 0 replies, has 1 voice, and was last updated by  jeffrey 11 years, 5 months ago.

  • Author
    Posts
  • #1985

    jeffrey
    Member

    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:

    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?

You must be logged in to reply to this topic.

Share
Tweet
Share
Pin
+1