Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Application not working in Release mode... Pin
_anil_1-Feb-06 0:53
_anil_1-Feb-06 0:53 
AnswerRe: Application not working in Release mode... Pin
benjymous1-Feb-06 1:22
benjymous1-Feb-06 1:22 
AnswerRe: Application not working in Release mode... Pin
kakan1-Feb-06 1:22
professionalkakan1-Feb-06 1:22 
AnswerRe: Application not working in Release mode... Pin
ddmcr1-Feb-06 1:36
ddmcr1-Feb-06 1:36 
AnswerRe: Application not working in Release mode... Pin
James Gupta1-Feb-06 2:03
professionalJames Gupta1-Feb-06 2:03 
AnswerRe: Application not working in Release mode... Pin
Danny Pav1-Feb-06 5:20
Danny Pav1-Feb-06 5:20 
QuestionDoubt in CreateProcess() and ShellExecute() Pin
Sasikumar.SR31-Jan-06 23:52
Sasikumar.SR31-Jan-06 23:52 
AnswerRe: Doubt in CreateProcess() and ShellExecute() Pin
Rage1-Feb-06 0:07
professionalRage1-Feb-06 0:07 
S.R.Sasi Kumar wrote:
But i how can i obtain the handle when i use "ShellExecute"?


You can't. Use ShellExecuteEx or, much better, CreateProcess to retrieve the handle.

From MSDN:

BOOL CreateProcess(
  LPCTSTR lpApplicationName,
                         // pointer to name of executable module
  LPTSTR lpCommandLine,  // pointer to command line string
  LPSECURITY_ATTRIBUTES lpProcessAttributes,  // process security attributes
  LPSECURITY_ATTRIBUTES lpThreadAttributes,   // thread security attributes
  BOOL bInheritHandles,  // handle inheritance flag
  DWORD dwCreationFlags, // creation flags
  LPVOID lpEnvironment,  // pointer to new environment block
  LPCTSTR lpCurrentDirectory,   // pointer to current directory name
  LPSTARTUPINFO lpStartupInfo,  // pointer to STARTUPINFO
  LPPROCESS_INFORMATION lpProcessInformation  // pointer to PROCESS_INFORMATION
);


So what you are looking for is probably here lpCOmmandLine



~RaGE();
GeneralRe: Doubt in CreateProcess() and ShellExecute() Pin
David Crow1-Feb-06 6:37
David Crow1-Feb-06 6:37 
GeneralRe: Doubt in CreateProcess() and ShellExecute() Pin
Rage1-Feb-06 9:26
professionalRage1-Feb-06 9:26 
GeneralRe: Doubt in CreateProcess() and ShellExecute() Pin
David Crow1-Feb-06 9:36
David Crow1-Feb-06 9:36 
GeneralRe: Doubt in CreateProcess() and ShellExecute() Pin
Owner drawn1-Feb-06 17:16
Owner drawn1-Feb-06 17:16 
QuestionPropertySheet tabs captions Pin
toxcct31-Jan-06 23:13
toxcct31-Jan-06 23:13 
AnswerRe: PropertySheet tabs captions Pin
Rage31-Jan-06 23:27
professionalRage31-Jan-06 23:27 
GeneralRe: PropertySheet tabs captions Pin
toxcct31-Jan-06 23:37
toxcct31-Jan-06 23:37 
GeneralRe: PropertySheet tabs captions Pin
PJ Arends1-Feb-06 8:18
professionalPJ Arends1-Feb-06 8:18 
GeneralRe: PropertySheet tabs captions Pin
toxcct1-Feb-06 21:31
toxcct1-Feb-06 21:31 
GeneralRe: PropertySheet tabs captions Pin
toxcct1-Feb-06 21:37
toxcct1-Feb-06 21:37 
GeneralRe: PropertySheet tabs captions Pin
Rage1-Feb-06 23:25
professionalRage1-Feb-06 23:25 
GeneralRe: PropertySheet tabs captions Pin
toxcct1-Feb-06 23:29
toxcct1-Feb-06 23:29 
QuestionDynamic memory allocation of 2-D array Pin
Sarvan AL31-Jan-06 22:43
Sarvan AL31-Jan-06 22:43 
AnswerRe: Dynamic memory allocation of 2-D array Pin
Owner drawn31-Jan-06 22:54
Owner drawn31-Jan-06 22:54 
AnswerRe: Dynamic memory allocation of 2-D array Pin
Rage31-Jan-06 23:29
professionalRage31-Jan-06 23:29 
AnswerRe: Dynamic memory allocation of 2-D array Pin
kakan1-Feb-06 0:04
professionalkakan1-Feb-06 0:04 
GeneralRe: Dynamic memory allocation of 2-D array Pin
RadioOpa1-Feb-06 3:42
RadioOpa1-Feb-06 3:42 

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.