Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Save/Restore Position of MDI-Childs Pin
Dave Lorde19-Jul-00 12:47
Dave Lorde19-Jul-00 12:47 
GeneralHave anyone used SSL or SSPI?Can you give me some info?Thanks! Pin
jedi18-Jul-00 17:37
jedi18-Jul-00 17:37 
GeneralSetTimer() and KillTimer() Pin
David18-Jul-00 15:47
David18-Jul-00 15:47 
GeneralRe: SetTimer() and KillTimer() Pin
Philip Nicoletti19-Jul-00 3:00
Philip Nicoletti19-Jul-00 3:00 
GeneralRe: SetTimer() and KillTimer() Pin
Benedict Verheyen20-Jul-00 4:52
sussBenedict Verheyen20-Jul-00 4:52 
QuestionHow do you crop a bitmap? Pin
Phil18-Jul-00 11:44
Phil18-Jul-00 11:44 
GeneralNew View in a SDI App Pin
Anthony Perri14-Jul-00 5:53
Anthony Perri14-Jul-00 5:53 
Generalmfcole, need help with GetExitCodeProcess() Pin
michael biagioni18-Jul-00 7:57
sussmichael biagioni18-Jul-00 7:57 
I need some help with these API calls:

My GetExitCodeProcess() function is failing...
The exception window displays:

"unhandled exception in Bond.exe [Kernal32.dll]
0xC000005, Access Violation

Can anyone tell me what might be wrong with
the following code, is it my handle?

HWND hWnd = ::FindWindow("XLMAIN", NULL);

DWORD pid; //variable to hold the process ID.
DWORD dThread; // Variable to hold (unused) thread ID

dThread = GetWindowThreadProcessId(hWnd,//Handle to window
&pid);// Address of process ID

HANDLE hProcess; //Handle to existing process

//PROCESS_ALL_ACCESS Specifies all possible access flags for the process object.
//PROCESS_QUERY_INFORMATION Enables using the process
//handle in the GetExitCodeProcess and GetPriorityClass //functions to
//read information from the process object.
//SYNCHRONIZE Windows NT/2000: Enables using the process //handle in any //of the wait functions to wait for the //process to terminate.

LPDWORD lpExitCode = 0;
hProcess = OpenProcess( PROCESS_QUERY_INFORMATION, FALSE,
pid);

// the following statement cause an access violation:
//"unhandled exception in Bond.exe [Kernal32.dll]
//0xC000005, Access Violation

//why? please help.

BOOL bResult = GetExitCodeProcess(hProcess, lpExitCode);
GeneralRe: mfcole, need help with GetExitCodeProcess() Pin
Stephen Kellett20-Jul-00 6:07
Stephen Kellett20-Jul-00 6:07 
QuestionPicture in MFC? Pin
Complete Newbie to MFC.18-Jul-00 5:51
sussComplete Newbie to MFC.18-Jul-00 5:51 
GeneralActiveX in a ATL Dialog Application Pin
MFCisTOfatFORme17-Jul-00 17:31
sussMFCisTOfatFORme17-Jul-00 17:31 
GeneralCRichEditCtrl Memory Allocation Pin
John Schwartzman17-Jul-00 16:13
John Schwartzman17-Jul-00 16:13 
QuestionSending data to a HtmlView ? Pin
Alwin17-Jul-00 11:51
Alwin17-Jul-00 11:51 
GeneralFonts in VC... Pin
Jeff17-Jul-00 10:38
Jeff17-Jul-00 10:38 
GeneralRe: Fonts in VC... Pin
Chris Maunder18-Jul-00 10:07
cofounderChris Maunder18-Jul-00 10:07 
GeneralDrawing picture from pixels in window Pin
Bohdan Jedlicka17-Jul-00 10:31
sussBohdan Jedlicka17-Jul-00 10:31 
GeneralRe: Drawing picture from pixels in window Pin
Dave Lorde19-Jul-00 12:55
Dave Lorde19-Jul-00 12:55 
Questionhow to get desktop's icons positions Pin
Kostya V. Vorobyov17-Jul-00 8:52
sussKostya V. Vorobyov17-Jul-00 8:52 
GeneralFile Copying Pin
Justin Welsch17-Jul-00 8:38
sussJustin Welsch17-Jul-00 8:38 
GeneralDrawLine Pin
Asaf16-Jul-00 23:53
Asaf16-Jul-00 23:53 
GeneralRe: DrawLine Pin
Dave Lorde19-Jul-00 13:02
Dave Lorde19-Jul-00 13:02 
GeneralI'm looking for a report writer Pin
Per G16-Jul-00 23:04
Per G16-Jul-00 23:04 
GeneralRe: I'm looking for a report writer Pin
Stéphane Gibier17-Jul-00 4:50
Stéphane Gibier17-Jul-00 4:50 
GeneralCall Graph Pin
kannank14-Jul-00 22:49
kannank14-Jul-00 22:49 
GeneralFiring events from a Thread... Pin
Daniel Fiske14-Jul-00 2:23
Daniel Fiske14-Jul-00 2:23 

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.