scenario: 회사에서 mfc 프로그램을 만들던중 몇가지 기능을 확인하고자 system에 print 하고싶었다. 그래서 콘솔창을 띄우고싶엇다


solution:


//stdafx.h


#ifdef _DEBUG

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

#endif


'To be Developer > C,C++' 카테고리의 다른 글

[C++]상수화 constant  (0) 2017.01.18
[C++]List iter 사용법  (0) 2017.01.18
[MFC]엔터 또는 ESC입력시 프로그램 꺼짐 방지하는법  (0) 2017.01.18

+ Recent posts