Jump to content
  • Advertisement
Sign in to follow this  
kinglink

Beginner Winmain Problem

This topic is 4904 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is the first program I'm trying to make myself using WinAPI (barely any mind you) I have the code as this Which I somewhat copied from a tutorial I've been using to learn DirectX. int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR pstrCmdLine, int iShowCmd) { return 0; } and the error message I return as c:\project\Nog\p_NBG.cpp(15): error C2059: syntax error : ')' I can't seem to understand why this started coming up now. Some of the last work I did was remove AFX___.h files (templ and win I believe) but from what I have read in an MSDN document I don't actually need any includes or imports for this? Or is the MSDN doc wrong (or am I reading it wrong?) What's the fix for these WINAPI functions?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!