Q: I'm porting an old application from Windows 98 that starts in main with thie following signature:
void main( int argc, char *argv[], char *envp[] )
I cannot get my CE application to link. It always reports: error LNK2019: unresolved external symbol WinMain referenced in function WinMainCRTStartup
How do I get my application to start up in main()? Windows CE projects started with eVC default to an entry point of WinMain() but you can change this by following these steps:
From the eVC manubar open the Project | Settings dialog.
Select the Link tab
Change the Category dropdown to "Output"
Change the Entry-point symbol from "WinMainCRTStartup" to "main"