// char -> wchar_t wchar_t* CharToWChar(char* pstrSrc) { int nLen = (int)strlen(pstrSrc)+1; int nLen = (int)strlen(pstrSrc)+1; wchar_t* pwstr = (LPWSTR)malloc(sizeof(wchar_t)*nLen); mbstowcs(pwstr, pstrSrc, nLen); return pwstr; } // wchar -> char char* WCharToChar(wchar_t* pwstrSrc) { int nLen = (int)wcslen(pwstrSrc)+1; char* pstr = (char*)malloc(sizeof(char)*nLen); wcstombs(pstr, pwstrSrc, nLen..
STARTUPINFO si = {0,}; si.dwFlags |= STARTF_USESHOWWINDOW; si.wShowWindow = SW_MINIMIZE; PROCESS_INFORMATION pi; BOOL bRtn = FALSE; HWND hSyncRobo = NULL; HWND hMsgDlg = NULL; int nCnt = 0; bRtn = CreateProcess(_T("C:\\Windows\\Edit.exe"), NULL, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); // 프로그램 실행 if(bRtn == FALSE) MessageBox(NULL, _T("실행오류"), NULL, MB_OK); else { WaitForInputIdle(pi.hProcess..