[add] preventing the command interpreter window occupies the dictionary screen.
[tech] using CreateProcess instead the system function call. The detail is listed as follows.
------------------- code ------------------
PROCESS_INFORMATION pi;
STARTUPINFO si;
memset(&si,0,sizeof(si));
si.cb= sizeof(si);
if(!CreateProcess(ProgramName,RunCommand, NULL, NULL, false, 0, NULL,NULL,&si,&pi)) {
MessageBox(NULL,_T("開啟執行檔發生問題"),_TCreateProcess Error"),MB_OK);
ShowError();
}
----------------------------------------------
by Jing
2 comments:
it seems that i should press "Enter" twice after inputting the word??
Thank you for your designing so convient a tool!
Post a Comment