본문 바로가기

프로그래밍 활용(TIP)

Win32 프로젝트에서 콘솔 디버그창 띄우기


#pragma comment(linker, "/entry:WinMainCRTStartup")
#pragma comment(linker, "/subsystem:console")


프로그램이 구동되는 부분의 서두에 두줄을 추가하면 된다.