나는이 응용 프로그램에서 vC++ 응용 프로그램을 작업 중입니다. console/log에 쓰는 방법은 무엇입니까?메트로 앱에서 VC++의 콘솔/로그에 쓰는 방법은 무엇입니까?
C# ---- system.diagnostics.debug.writeline ("Hello"); 비슷하게 VC++ ----?
나는이 응용 프로그램에서 vC++ 응용 프로그램을 작업 중입니다. console/log에 쓰는 방법은 무엇입니까?메트로 앱에서 VC++의 콘솔/로그에 쓰는 방법은 무엇입니까?
C# ---- system.diagnostics.debug.writeline ("Hello"); 비슷하게 VC++ ----?
메트로 스타일 앱에는 콘솔이있을 수 없습니다. C++/CXX 응용 프로그램에서 OutputDebugString()을 사용하면 System.Diagnostics.Debug.Write가 관리되는 응용 프로그램에서와 마찬가지로 Visual Studio 출력 창에 디버그 텍스트를 표시 할 수 있습니다. 승인 된 winapi 함수가 많이 없지만 OutputDebugString()은 괜찮습니다. MSDN 시작 페이지 is here.
GUI 응용 프로그램을 만드는 경우 직접 콘솔을 사용할 수 있습니다.
AllocConsole();
freopen("CONOUT$", "w+t", stdout);
그런 다음 간단한 std :: cout 또는 진단 메시지를 인쇄 할 수 있습니다.
in C# System.Diagnostics.Debug.Write 제대로 작동합니다. – Narasimha
Metro 앱에는 System :: Diagnostics 네임 스페이스가 없습니다. – RelativeGames