Click here to Skip to main content
15,886,085 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Which Database is best? Pin
Rajesh R Subramanian5-Jan-06 19:21
professionalRajesh R Subramanian5-Jan-06 19:21 
AnswerRe: Which Database is best? Pin
vikas amin5-Jan-06 19:22
vikas amin5-Jan-06 19:22 
AnswerRe: Which Database is best? Pin
Eytukan5-Jan-06 20:23
Eytukan5-Jan-06 20:23 
AnswerRe: Which Database is best? Pin
Joe Woodbury6-Jan-06 15:32
professionalJoe Woodbury6-Jan-06 15:32 
Question__FILE__ macro Pin
Saurabh.Garg5-Jan-06 18:28
Saurabh.Garg5-Jan-06 18:28 
AnswerRe: __FILE__ macro Pin
Sam.Liang5-Jan-06 19:01
Sam.Liang5-Jan-06 19:01 
GeneralRe: __FILE__ macro Pin
Saurabh.Garg5-Jan-06 20:42
Saurabh.Garg5-Jan-06 20:42 
QuestionCreateProcess!! Pin
manojk_batra5-Jan-06 18:03
manojk_batra5-Jan-06 18:03 
Dear All,

Please look at the following code ...
---------------------------------------------------------------------------
PROCESS_INFORMATION pi;
STARTUPINFO si;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
SetLastError(0);
CreateProcess("notepad.exe",NULL,NULL,NULL,FALSE,NULL,NULL,NULL,&si,&pi);
---------------------------------------------------------------------------

This code is not able to run the notepad because its not able to find the path of notapd.exe application.

But when I use Run option in Windows Start Menu ,type notapad and say OK, its able to find and run the notpad application may be from enviornment variables.

Please let me know why My code is not able find the notapd application?

PS- It will work if i copy notpad.exe application where my application exists.
Smile | :)





With Regards
Manoj
AnswerRe: CreateProcess!! Pin
Anilkumar K V5-Jan-06 18:17
Anilkumar K V5-Jan-06 18:17 
GeneralRe: CreateProcess!! Pin
manojk_batra5-Jan-06 19:37
manojk_batra5-Jan-06 19:37 
GeneralRe: CreateProcess!! Pin
ThatsAlok8-Jan-06 23:57
ThatsAlok8-Jan-06 23:57 
AnswerRe: CreateProcess!! Pin
lastgen5-Jan-06 18:46
lastgen5-Jan-06 18:46 
GeneralRe: CreateProcess!! Pin
manojk_batra5-Jan-06 20:29
manojk_batra5-Jan-06 20:29 
AnswerRe: CreateProcess!! Pin
Owner drawn5-Jan-06 19:01
Owner drawn5-Jan-06 19:01 
GeneralRe: CreateProcess!! Pin
manojk_batra5-Jan-06 20:33
manojk_batra5-Jan-06 20:33 
AnswerRe: CreateProcess!! Pin
sunit55-Jan-06 19:06
sunit55-Jan-06 19:06 
GeneralRe: CreateProcess!! Pin
manojk_batra5-Jan-06 20:45
manojk_batra5-Jan-06 20:45 
Questionhow can i create worker and UI thread in single application Pin
Laxman95-Jan-06 17:49
Laxman95-Jan-06 17:49 
AnswerRe: how can i create worker and UI thread in single application Pin
Anilkumar K V5-Jan-06 18:05
Anilkumar K V5-Jan-06 18:05 
QuestionHow to create an independent thread for reading data from buffer of Serial Port ??? Pin
QuangDien5-Jan-06 15:17
QuangDien5-Jan-06 15:17 
AnswerRe: How to create an independent thread for reading data from buffer of Serial Port ??? Pin
Anilkumar K V5-Jan-06 17:14
Anilkumar K V5-Jan-06 17:14 
QuestionQuick ideas for activation Pin
Alex Korchemniy5-Jan-06 14:57
Alex Korchemniy5-Jan-06 14:57 
AnswerRe: Quick ideas for activation Pin
TheGreatAndPowerfulOz5-Jan-06 20:20
TheGreatAndPowerfulOz5-Jan-06 20:20 
GeneralRe: Quick ideas for activation Pin
Sebastian Schneider5-Jan-06 20:37
Sebastian Schneider5-Jan-06 20:37 
AnswerRe: Quick ideas for activation Pin
TheGreatAndPowerfulOz5-Jan-06 20:33
TheGreatAndPowerfulOz5-Jan-06 20:33 

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.