Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 설치 테스트
- esp-wroom-32d
- winsock.h Broadcast
- Flutter
- _sprintf
- OpenCPN설치
- MFC
- Plugins
- git 대용량 파일
- 의존주입
- Mqtt
- LINK2001
- c++ set struct
- ExtendWith
- Console
- OpenCPN
- 멀티바이트 문자 집합 사용
- OpenXLSX 한글
- __vsnprintf
- c++ Broadcast
- git 최초 설정
- 확인할 수 없는 외부 기호
- .gitattributes
- 정적 라이브러리에서 MFC 사용
- 사전설치
- wxWidget
- c2678
- sts4
- __snprintf
- SQLite3
Archives
- Today
- Total
세상을 이롭게
MFC Console 창에 로그 출력하기 본문
원하는 cpp 에 아래의 코드를 넣어, 프로그램 동작시 Dos 창에서 로그가 보이도록 한다.
#pragma comment(linker, "/entry:WinMainCRTStartup /subsystem:console")
#include <iostream>
사용법은
std::cout << "Log" << std::endl;
등으로 사용하면된다.
'MFC' 카테고리의 다른 글
[MFC] COMBOBOX에 존재하는 Comport 목록 띄우기(Feat.Registry) (1) | 2021.07.30 |
---|---|
[MFC] MFC 프로젝트 만들기(대화 상자 기반) VS2010 (0) | 2021.07.29 |
[MFC ERROR] 다음은 유효한 C/C++ 파일이 아닙니다. (0) | 2021.04.08 |