Click here to Skip to main content
15,910,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAssistance with 0xC0000005: Access Violation Pin
Reagan Conservative4-May-07 6:46
Reagan Conservative4-May-07 6:46 
AnswerRe: Assistance with 0xC0000005: Access Violation Pin
prasad_som4-May-07 7:22
prasad_som4-May-07 7:22 
GeneralRe: Assistance with 0xC0000005: Access Violation Pin
Reagan Conservative4-May-07 8:07
Reagan Conservative4-May-07 8:07 
GeneralRe: Assistance with 0xC0000005: Access Violation Pin
David Crow4-May-07 8:34
David Crow4-May-07 8:34 
GeneralRe: Assistance with 0xC0000005: Access Violation Pin
Reagan Conservative4-May-07 8:43
Reagan Conservative4-May-07 8:43 
GeneralRe: Assistance with 0xC0000005: Access Violation Pin
krmed5-May-07 4:05
krmed5-May-07 4:05 
AnswerRe: Assistance with 0xC0000005: Access Violation Pin
Hans Dietrich5-May-07 1:28
mentorHans Dietrich5-May-07 1:28 
QuestionProblem initiating DDE with new Process after WaitForInputIdle Pin
schnuffel174-May-07 5:31
schnuffel174-May-07 5:31 
Hallo Community,

it would be very nice if anyone could point me possible reasons for the misbehaviour of my MFC-MDI-App.

We want to start the app via DDE '[open("%1")]', which works fine with the app already
running, but fails, if the DDE client has to start the app.
As I've found in an msdn-blog, the calling process waits for the app finishing its initialization by calling 'WaitForInputIdle'.

I've reproduced this calling procedure in an old DDE-Client sample from MSDN (using DDEML, hiding the interesting part), and get the same behaviour: After successfully waiting (return of WaitForInputIdle is 0), the WM_DDE_INITIATE message gets still not send to my apps main window.

If I insert a short time of Sleep between the Wait and the connection attempt in the client, it works fine again.

The question is, what is my app doing/why is the main window not available as target for the DDE-client after WaitForInputIdle() has returned ?

The error message from explorer is 'File xxx not found', which comes before InitInstance is processed.

When the app is started via double-click in explorer using the debugger by defining the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\MYAPP.EXE\debugger=...' everything is working fine again.

Any hints highly appreciated !

Best regards

Reinhard

QuestionUAC Elevation on Vista Pin
Steve Thresher4-May-07 4:41
Steve Thresher4-May-07 4:41 
AnswerRe: UAC Elevation on Vista Pin
Hans Dietrich5-May-07 1:34
mentorHans Dietrich5-May-07 1:34 
QuestionNeed to draw something on CListCtrl - how to do it ? Pin
Yanshof4-May-07 4:36
Yanshof4-May-07 4:36 
QuestionRe: Need to draw something on CListCtrl - how to do it ? Pin
Maximilien4-May-07 4:59
Maximilien4-May-07 4:59 
AnswerRe: Need to draw something on CListCtrl - how to do it ? Pin
Yanshof4-May-07 5:10
Yanshof4-May-07 5:10 
AnswerRe: Need to draw something on CListCtrl - how to do it ? Pin
Michael Dunn4-May-07 6:27
sitebuilderMichael Dunn4-May-07 6:27 
GeneralRe: Need to draw something on CListCtrl - how to do it ? Pin
Yanshof4-May-07 6:41
Yanshof4-May-07 6:41 
AnswerSomeone please can help me with this one ... ? Pin
Yanshof4-May-07 23:37
Yanshof4-May-07 23:37 
QuestionHow to add Event sink messages to a view? Pin
Arris744-May-07 3:37
Arris744-May-07 3:37 
QuestionFIFO, C programming Pin
C_Zealot4-May-07 3:33
C_Zealot4-May-07 3:33 
QuestionRe: FIFO, C programming Pin
David Crow4-May-07 3:54
David Crow4-May-07 3:54 
AnswerRe: FIFO, C programming Pin
Mark Salsbery4-May-07 5:40
Mark Salsbery4-May-07 5:40 
AnswerRe: FIFO, C programming Pin
toxcct4-May-07 9:45
toxcct4-May-07 9:45 
JokeRe: FIFO, C programming Pin
Moak4-May-07 10:41
Moak4-May-07 10:41 
GeneralRe: FIFO, C programming Pin
toxcct4-May-07 10:47
toxcct4-May-07 10:47 
GeneralRe: FIFO, C programming Pin
Mark Salsbery4-May-07 10:58
Mark Salsbery4-May-07 10:58 
JokeRe: FIFO, C programming Pin
toxcct4-May-07 11:01
toxcct4-May-07 11:01 

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.