Click here to Skip to main content
15,914,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Retrieving Path of the Program Associated with a File Type Pin
David Crow11-May-04 7:10
David Crow11-May-04 7:10 
GeneralRe: Retrieving Path of the Program Associated with a File Type Pin
Rick York11-May-04 8:12
mveRick York11-May-04 8:12 
GeneralRe: Retrieving Path of the Program Associated with a File Type Pin
David Crow11-May-04 8:27
David Crow11-May-04 8:27 
GeneralThank you guys Pin
Abin11-May-04 7:39
Abin11-May-04 7:39 
GeneralA Problem Pin
frankmanzhu11-May-04 5:57
frankmanzhu11-May-04 5:57 
GeneralRe: A Problem Pin
toxcct11-May-04 6:37
toxcct11-May-04 6:37 
GeneralRe: A Problem Pin
David Crow11-May-04 7:14
David Crow11-May-04 7:14 
GeneralEvent Objects Pin
sweep12311-May-04 5:54
sweep12311-May-04 5:54 
I have been trying to send an event from a DLL (Dynamically loaded) to a GUI application to display text.

I use shared memory for the transfer of data, also in this shared data area in the handle for this event.

In the DLL I
m_pMsg->hGlobalWriteEvent = CreateEvent(NULL, // no security attributes
FALSE, // manual-reset event
FALSE, // initial state is signaled
"CSLDisplayData" // object name
);
Note m_pMsg is a pointer to the shared memory area.

Then I send the event:-

// Signal GUI to process this request
::SetEvent(m_pMsg->hGlobalWriteEvent);


Now in the GUI I have a thread waiting on this event.

if (::WaitForSingleObject(ThreadData->m_pMsg->hGlobalWriteEvent, INFINITE) == WAIT_OBJECT_0)
{
etc

But this event in the GUI is never fired.

Note I can create and send an event to the thread from the GUI but not from the DLL.

What can I do?
GeneralRe: Event Objects Pin
Jens Doose11-May-04 6:20
Jens Doose11-May-04 6:20 
GeneralRe: Event Objects Pin
sweep12311-May-04 6:25
sweep12311-May-04 6:25 
GeneralRe: Event Objects Pin
Michael Dunn11-May-04 10:02
sitebuilderMichael Dunn11-May-04 10:02 
GeneralRe: Event Objects Pin
sweep12312-May-04 1:28
sweep12312-May-04 1:28 
GeneralAdjusting Column Widths in ListCtrl Pin
TWS_Dave11-May-04 5:30
TWS_Dave11-May-04 5:30 
GeneralRe: Adjusting Column Widths in ListCtrl Pin
Ravi Bhavnani11-May-04 6:47
professionalRavi Bhavnani11-May-04 6:47 
GeneralRe: Adjusting Column Widths in ListCtrl Pin
peterchen11-May-04 9:44
peterchen11-May-04 9:44 
GeneralProcess ID Pin
Opwar11-May-04 5:12
Opwar11-May-04 5:12 
GeneralRe: Process ID Pin
David Crow11-May-04 5:39
David Crow11-May-04 5:39 
GeneralRe: Process ID Pin
Jens Doose11-May-04 5:42
Jens Doose11-May-04 5:42 
GeneralRe: Process ID Pin
Opwar11-May-04 5:48
Opwar11-May-04 5:48 
GeneralRe: Process ID Pin
Jens Doose11-May-04 5:55
Jens Doose11-May-04 5:55 
GeneralRe: Process ID Pin
Diddy11-May-04 6:07
Diddy11-May-04 6:07 
GeneralManually turn display into standby mode Pin
mleonhartsberger11-May-04 4:55
mleonhartsberger11-May-04 4:55 
GeneralRe: Manually turn display into standby mode Pin
David Crow11-May-04 5:48
David Crow11-May-04 5:48 
GeneralRe: Manually turn display into standby mode Pin
mleonhartsberger11-May-04 9:26
mleonhartsberger11-May-04 9:26 
GeneralRe: Manually turn display into standby mode Pin
David Crow11-May-04 9:33
David Crow11-May-04 9:33 

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.