| Ch1156 (877) | |||
|
I am following a tutorial: http://pravin.insanitybegins.com/win32/lesson2 And i am doing exactly what he is, i am not copying and pasting i am actually typing out all of the code but i get these errors C:\Users\Chay\Desktop\DrawLite\main.cpp||In function 'int WinMain(HINSTANCE__*, HINSTANCE__*, CHAR*, int)':| C:\Users\Chay\Desktop\DrawLite\main.cpp|50|error: a function-definition is not allowed here before '{' token| C:\Users\Chay\Desktop\DrawLite\main.cpp|61|error: expected '}' at end of input| ||=== Build finished: 2 errors, 0 warnings ===| CODE;
| |||
|
|
|||
| Ogoyant (153) | |
|
You are writing the definition of MainWndProc() inside your WinMain()'s definition. Cut lines 49-60 and paste them after the closing bracket '}' of your WinMain() (which is currently in line 61). | |
|
Last edited on
|
|
| Ch1156 (877) | |
| Awesome thank you for the help :) | |
|
|
|