Sign in to follow this  

Beginner Winmain Problem

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this