Click here to Skip to main content
15,071,480 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CreateProcess problem. Pin
Naveen28-Jun-06 17:29
MemberNaveen28-Jun-06 17:29 
GeneralRe: CreateProcess problem. Pin
iLoveM28-Jun-06 22:16
MemberiLoveM28-Jun-06 22:16 
AnswerRe: CreateProcess problem. Pin
Hamid_RT28-Jun-06 19:00
MemberHamid_RT28-Jun-06 19:00 
GeneralRe: CreateProcess problem. Pin
iLoveM28-Jun-06 22:18
MemberiLoveM28-Jun-06 22:18 
GeneralRe: CreateProcess problem. Pin
Naveen28-Jun-06 22:43
MemberNaveen28-Jun-06 22:43 
QuestionRe: CreateProcess problem. Pin
David Crow29-Jun-06 3:27
MemberDavid Crow29-Jun-06 3:27 
QuestionRe: CreateProcess problem. Pin
David Crow29-Jun-06 3:23
MemberDavid Crow29-Jun-06 3:23 
AnswerRe: CreateProcess problem. Pin
iLoveM29-Jun-06 15:47
MemberiLoveM29-Jun-06 15:47 
It's too strange!!!

STARTUPINFO si;

ZeroMemory(&si, sizeof(si));

si.cb = sizeof STARTUPINFO;

CHAR szFolderWhereFileIsLocated[250]={0};
strcpy(szFolderWhereFileIsLocated ,"put path here");

PROCESS_INFORMATION pi;
CreateProcess("A.exe",
NULL,
NULL,
NULL,
FALSE,
0,
NULL,
szFolderWhereFileIsLocated,
&si,
π);

when i put these code in a console program, the sub process can open correctly. Then in my windows program, the sub process can't open file firstly, then start up the sub process again (my program will start up the sub process every 20 sec) , it's OK.

Just relax
QuestionHow to display 2 byte characters Pin
surendra vk28-Jun-06 14:11
Membersurendra vk28-Jun-06 14:11 
AnswerRe: How to display 2 byte characters Pin
Michael Dunn28-Jun-06 15:28
sitebuilderMichael Dunn28-Jun-06 15:28 
GeneralRe: How to display 2 byte characters Pin
surendra vk28-Jun-06 16:00
Membersurendra vk28-Jun-06 16:00 
GeneralRe: How to display 2 byte characters Pin
Joe Woodbury28-Jun-06 16:18
professionalJoe Woodbury28-Jun-06 16:18 
GeneralRe: How to display 2 byte characters Pin
surendra vk28-Jun-06 16:52
Membersurendra vk28-Jun-06 16:52 
GeneralRe: How to display 2 byte characters Pin
Michael Dunn28-Jun-06 19:26
sitebuilderMichael Dunn28-Jun-06 19:26 
QuestionCreateWindow() issue Pin
Jeremy Falcon28-Jun-06 12:54
professionalJeremy Falcon28-Jun-06 12:54 
AnswerRe: CreateWindow() issue Pin
valikac28-Jun-06 13:10
Membervalikac28-Jun-06 13:10 
GeneralRe: CreateWindow() issue [modified] Pin
Jeremy Falcon28-Jun-06 13:21
professionalJeremy Falcon28-Jun-06 13:21 
AnswerRe: Workaround but still curious... Pin
Jeremy Falcon28-Jun-06 13:42
professionalJeremy Falcon28-Jun-06 13:42 
AnswerRe: CreateWindow() issue Pin
Jörgen Sigvardsson28-Jun-06 14:06
MemberJörgen Sigvardsson28-Jun-06 14:06 
GeneralRe: CreateWindow() issue Pin
Jeremy Falcon28-Jun-06 14:41
professionalJeremy Falcon28-Jun-06 14:41 
GeneralRe: CreateWindow() issue Pin
Jeremy Falcon28-Jun-06 14:46
professionalJeremy Falcon28-Jun-06 14:46 
Question[Message Deleted] Pin
aafcls28-Jun-06 10:57
Memberaafcls28-Jun-06 10:57 
AnswerRe: OnInitDialog Pin
led mike28-Jun-06 11:27
Memberled mike28-Jun-06 11:27 
AnswerRe: OnInitDialog Pin
cje28-Jun-06 11:50
Membercje28-Jun-06 11:50 
AnswerRe: OnInitDialog Pin
Jeremy Falcon28-Jun-06 13:06
professionalJeremy Falcon28-Jun-06 13:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.