Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printing without a printer Pin
Waldermort16-Mar-06 3:12
Waldermort16-Mar-06 3:12 
AnswerRe: Printing without a printer Pin
Ryan Binns16-Mar-06 17:24
Ryan Binns16-Mar-06 17:24 
QuestionCreateProcess Method Pin
Subramaniam s.V.16-Mar-06 2:04
Subramaniam s.V.16-Mar-06 2:04 
AnswerRe: CreateProcess Method Pin
Hamid_RT16-Mar-06 2:11
Hamid_RT16-Mar-06 2:11 
GeneralRe: CreateProcess Method Pin
SilentSilent16-Mar-06 3:16
SilentSilent16-Mar-06 3:16 
AnswerRe: CreateProcess Method Pin
Michael Dunn16-Mar-06 5:15
sitebuilderMichael Dunn16-Mar-06 5:15 
AnswerRe: CreateProcess Method Pin
Chris Gao16-Mar-06 9:26
Chris Gao16-Mar-06 9:26 
AnswerRe: CreateProcess Method Pin
Stephen Hewitt16-Mar-06 12:04
Stephen Hewitt16-Mar-06 12:04 
When you do get it to work remember no to leak HANDLEs. After the CreateProcess call you need to close some HANDLES it returns if you don't plan on using them:
PROCESS_INFORMATION pi;
BOOL bOK = CreateProcess(..., &pi);
if (bOK)
{
     CloseHandle(pi.hProcess);
     CloseHandle(pi.hThread);
}


Not closing these handles is a common mistake people calling CreateProcess make.

Also you use the wart "p" on the variable "pProcessInfo" - This is normally used for pointers. You'll confuse people using it on a variable that isn't a pointer.


Steve
GeneralRe: CreateProcess Method Pin
Chris Gao16-Mar-06 15:34
Chris Gao16-Mar-06 15:34 
GeneralRe: CreateProcess Method Pin
Subramaniam s.V.16-Mar-06 17:35
Subramaniam s.V.16-Mar-06 17:35 
GeneralRe: CreateProcess Method Pin
Subramaniam s.V.16-Mar-06 17:48
Subramaniam s.V.16-Mar-06 17:48 
Questionfaster method of bitmap reading Pin
_tasleem16-Mar-06 1:22
_tasleem16-Mar-06 1:22 
AnswerRe: faster method of bitmap reading Pin
Remco Hoogenboezem16-Mar-06 4:03
Remco Hoogenboezem16-Mar-06 4:03 
QuestionDisable the close button Pin
Aryan S16-Mar-06 0:59
Aryan S16-Mar-06 0:59 
AnswerRe: Disable the close button Pin
Nibu babu thomas16-Mar-06 1:22
Nibu babu thomas16-Mar-06 1:22 
AnswerRe: Disable the close button Pin
Karim Mribti16-Mar-06 1:26
Karim Mribti16-Mar-06 1:26 
QuestionExcel Automation in vc++ Pin
ledallam16-Mar-06 0:54
ledallam16-Mar-06 0:54 
AnswerRe: Excel Automation in vc++ Pin
Waldermort16-Mar-06 2:27
Waldermort16-Mar-06 2:27 
QuestionQuestion ... Pin
HakunaMatada15-Mar-06 23:27
HakunaMatada15-Mar-06 23:27 
AnswerRe: Question ... Pin
toxcct15-Mar-06 23:36
toxcct15-Mar-06 23:36 
GeneralRe: Question ... Pin
HakunaMatada15-Mar-06 23:59
HakunaMatada15-Mar-06 23:59 
GeneralRe: Question ... Pin
Eytukan16-Mar-06 1:50
Eytukan16-Mar-06 1:50 
AnswerRe: Question ... Pin
Nibu babu thomas15-Mar-06 23:37
Nibu babu thomas15-Mar-06 23:37 
GeneralRe: Question ... Pin
HakunaMatada16-Mar-06 0:08
HakunaMatada16-Mar-06 0:08 
AnswerRe: Question ... Pin
Naveen15-Mar-06 23:39
Naveen15-Mar-06 23:39 

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.