본문 바로가기

컴퓨터 과학 & 영상처리 관련/MFC

엑셀 exe파일 만들어서 mfc에서 실행 시키는 법 확인


인자로 받아서 help, 파일명, 구분단어('\t , . 공백 등)
->룰 좀 만들자-> 구분기호는 txt파일에 담아서 엔터로 구분하면 됨.읽어서 하게
->걍 컴파일 다시 하면 되지 좆같게 그러냐....그냥 mfc에서 어떻게 실행하는지 a.exe 파일명 해보자
->http://blog.naver.com/PostView.nhn?blogId=jiwonng&logNo=20097198217
->ShellExecute(NULL, "open", "notepad.exe", NULL, NULL, SW_SHOW);

http://wheremi.tistory.com/102


ShellExecute(NULL, "open", "notepad.exe", "c:\SendMailLog.txt", NULL, SW_SHOW); //안됨
ShellExecute(NULL, "open", "notepad.exe c:\SendMailLog.txt",NULL, NULL, SW_SHOW); //안됨

 

ShellExecute(NULL, "open", "notepad.exe","c:\\SendMailLog.txt", NULL, SW_SHOW); //됨
ShellExecute(NULL, "open", "notepad.exe", NULL, NULL, SW_SHOW);  //됨