windows console

hey whats the code to get rid of the windows console when im writing an opengl prog within a wondpws console project i forgot?

Add following code near the head of code

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

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