PDA

View Full Version : windows console



swyitch
01-17-2002, 04:27 PM
hey whats the code to get rid of the windows console when im writing an opengl prog within a wondpws console project i forgot?

Zw
01-17-2002, 06:21 PM
Add following code near the head of code

#pragma comment(linker,"/entry:\"mainCRTStartup\"")

tell linker the main function is main() not WinMain()