Click here to Skip to main content
16,004,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionShellExecute problem Pin
QuickDeveloper7-Apr-06 19:46
QuickDeveloper7-Apr-06 19:46 
AnswerRe: ShellExecute problem Pin
includeh107-Apr-06 20:10
includeh107-Apr-06 20:10 
GeneralRe: ShellExecute problem Pin
QuickDeveloper7-Apr-06 20:24
QuickDeveloper7-Apr-06 20:24 
GeneralRe: ShellExecute problem Pin
Hamid_RT7-Apr-06 21:09
Hamid_RT7-Apr-06 21:09 
GeneralRe: ShellExecute problem Pin
QuickDeveloper7-Apr-06 22:30
QuickDeveloper7-Apr-06 22:30 
GeneralRe: ShellExecute problem Pin
Hamid_RT7-Apr-06 22:50
Hamid_RT7-Apr-06 22:50 
AnswerRe: ShellExecute problem Pin
Matt Godbolt8-Apr-06 1:12
Matt Godbolt8-Apr-06 1:12 
AnswerRe: ShellExecute problem Pin
Michael Dunn8-Apr-06 12:19
sitebuilderMichael Dunn8-Apr-06 12:19 
Three problems:
One, your comparison is buggy. ! has higher precedence than == so the comparison isn't doing what you want. Rewrite it to use != which is clearer.
Two, your check of the return value is wrong. From the ShellExecute() docs:
Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise.
Three (and most significant) ShellExecute()'s return value only tells you if the app was launched. It tells you nothing about what the app did.

--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

AnswerRe: ShellExecute problem Pin
Gary R. Wheeler8-Apr-06 12:50
Gary R. Wheeler8-Apr-06 12:50 
Questionabout VSS Pin
FlyWithYou7-Apr-06 19:25
FlyWithYou7-Apr-06 19:25 
Questionsearching files Pin
RabiaAslam7-Apr-06 18:09
RabiaAslam7-Apr-06 18:09 
AnswerRe: searching files Pin
Hamid_RT7-Apr-06 18:45
Hamid_RT7-Apr-06 18:45 
AnswerRe: searching files Pin
Aqueel7-Apr-06 19:10
Aqueel7-Apr-06 19:10 
GeneralRe: searching files Pin
RabiaAslam8-Apr-06 0:00
RabiaAslam8-Apr-06 0:00 
GeneralRe: searching files Pin
Hamid_RT8-Apr-06 1:49
Hamid_RT8-Apr-06 1:49 
AnswerRe: searching files Pin
ThatsAlok7-Apr-06 19:38
ThatsAlok7-Apr-06 19:38 
AnswerRe: searching files Pin
ThatsAlok7-Apr-06 19:40
ThatsAlok7-Apr-06 19:40 
AnswerRe: searching files Pin
Hamid_RT7-Apr-06 19:45
Hamid_RT7-Apr-06 19:45 
AnswerRe: searching files Pin
Aqueel7-Apr-06 19:59
Aqueel7-Apr-06 19:59 
QuestionBalanced Binary Trees Pin
TranscendentalSoftware7-Apr-06 17:39
TranscendentalSoftware7-Apr-06 17:39 
AnswerRe: Balanced Binary Trees Pin
El Corazon7-Apr-06 20:09
El Corazon7-Apr-06 20:09 
GeneralRe: Balanced Binary Trees Pin
TranscendentalSoftware7-Apr-06 20:21
TranscendentalSoftware7-Apr-06 20:21 
GeneralRe: Balanced Binary Trees Pin
Blake Miller10-Apr-06 5:15
Blake Miller10-Apr-06 5:15 
QuestionCAsyncSocket Question Pin
JBAK_CP7-Apr-06 14:30
JBAK_CP7-Apr-06 14:30 
AnswerRe: CAsyncSocket Question Pin
Mike O'Neill8-Apr-06 8:00
Mike O'Neill8-Apr-06 8:00 

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.