콘솔창 작업 표시줄 없애기
콘솔 프로그램을 만들게 되면 작업표시줄에도 실행파일이 보이게 되는데, 그것을 안보이게 실행해줍니다. #pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
콘솔 프로그램을 만들게 되면 작업표시줄에도 실행파일이 보이게 되는데, 그것을 안보이게 실행해줍니다. #pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
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 31 32 33 34 35 36 37 38 39 40 41 42 char RunShellExecuteA(const char a_cmd[], const char a_path[]) { if (_access(a_path, 0) == -1) { printf("\n*********Error*********\n"); printf("경로명을 확인하세요.\n"); printf("***********************\n"); return 0; } // 실행을 위해 구조체 세트 SHELLEXECUTEINFOA info; ZeroMemory(&info, sizeof(info)..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #define _CRT_SECURE_NO_WARNINGS #include #include #include void main() { const char *path_txt = "경로입력\\test.txt"; FILE *p_file = fopen(path_txt, "at"); // 한글 포멧 setlocale(LC_ALL, "KOREAN"); wchar_t buf[1024]; wsprintf(buf, L"내용입력~"); fwprintf(p_file, L"%s", buf); fclose(p_file); } Colored by Color Scripter cs 또 다른 방법 FILE *p_file = _wfopen(L"경로입력\\..
12345678910111213141516171819#define _CRT_SECURE_NO_WARNINGS #include #include #include void main(){ const char *path_txt = "경로입력\\test.txt"; FILE *p_file = fopen(path_txt, "at"); // 한글 포멧 setlocale(LC_ALL, "KOREAN"); wchar_t buf[1024]; wsprintf(buf, L"내용입력~"); fwprintf(p_file, L"%s", buf); fclose(p_file);}Colored by Color Scriptercs