i tried to use WinMain instead of main in my program but an error on linking. the error message shown below:
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/DialogBox.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
please advice. thanks
Do you have your callback?
show some code then it will be easier to help
here is the code of WinMain
int PASCAL WinMain(HINSTANCE hInstance,
besides, i don't understand what is "callback". i'm new in C. :(
Look at what type of app you are creating.
Looks like you have not created a WIN32 app, so it is looking for the usual main().
i got you novacain. i created a win32 console application instead of win32 application.