c++migrationsubsystem

Changing a C++ Console application to Windows subsystem


The title of the question explains pretty much the whole question. I've been programming a console application for about a week now and I want to migrate over to a GUI. Sounds simple, but I'm running into some errors. I would add them here, but it seems pretty obvious that there are some preparations I need to make to move over to GUI that I haven't made yet.

So, where do I start?

Thanks, -P

EDIT: LIBCMT.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16

That's all I've got so far, but by the looks of it it may be a big problem to tackle. And if I didn't make it clear, my objective is to change from the console subsystem to the windows subsystem.


Solution

  • Looks like WinMain is set as the entry point of your application (as a Windows subsystem app), where you probably have a main() function somewhere from your console application. Set the entry point to main() or implement WinMain to resolve the linker issue.