Sunday, March 23, 2008

[Fixed] the MS-DOS window which occupies the dictionary content

[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:

Unknown said...

it seems that i should press "Enter" twice after inputting the word??

Unknown said...

Thank you for your designing so convient a tool!