Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to run another object from another project Pin
kanekcwu16-Apr-08 13:42
kanekcwu16-Apr-08 13:42 
GeneralRe: How to run another object from another project Pin
Hamid_RT17-Apr-08 6:43
Hamid_RT17-Apr-08 6:43 
GeneralRe: How to run another object from another project Pin
kanekcwu17-Apr-08 14:15
kanekcwu17-Apr-08 14:15 
GeneralRe: How to run another object from another project Pin
Hamid_RT17-Apr-08 19:21
Hamid_RT17-Apr-08 19:21 
GeneralRe: How to run another object from another project Pin
kanekcwu16-Apr-08 13:56
kanekcwu16-Apr-08 13:56 
GeneralRe: How to run another object from another project Pin
Nathan Holt at EMOM16-Apr-08 15:55
Nathan Holt at EMOM16-Apr-08 15:55 
Generalabout the access violation error at the malloc sentence Pin
wendyyue16-Apr-08 4:38
wendyyue16-Apr-08 4:38 
GeneralRe: about the access violation error at the malloc sentence Pin
Cedric Moonen16-Apr-08 4:53
Cedric Moonen16-Apr-08 4:53 
QuestionRe: about the access violation error at the malloc sentence Pin
CPallini16-Apr-08 5:10
mveCPallini16-Apr-08 5:10 
GeneralRe: about the access violation error at the malloc sentence Pin
wendyyue16-Apr-08 5:26
wendyyue16-Apr-08 5:26 
GeneralRe: about the access violation error at the malloc sentence Pin
CPallini16-Apr-08 5:35
mveCPallini16-Apr-08 5:35 
GeneralRe: about the access violation error at the malloc sentence Pin
David Crow16-Apr-08 10:24
David Crow16-Apr-08 10:24 
QuestionSSE2 Pin
galois16-Apr-08 4:37
galois16-Apr-08 4:37 
GeneralRe: SSE2 Pin
Randor 16-Apr-08 7:37
professional Randor 16-Apr-08 7:37 
QuestionHow to inject javascript into webbrowser control Pin
Alexander Fedorov16-Apr-08 4:21
Alexander Fedorov16-Apr-08 4:21 
AnswerRe: How to inject javascript into webbrowser control Pin
led mike16-Apr-08 4:29
led mike16-Apr-08 4:29 
GeneralRe: How to inject javascript into webbrowser control Pin
Alexander Fedorov16-Apr-08 4:50
Alexander Fedorov16-Apr-08 4:50 
GeneralRe: How to inject javascript into webbrowser control Pin
led mike16-Apr-08 5:02
led mike16-Apr-08 5:02 
GeneralRe: How to inject javascript into webbrowser control Pin
Alexander Fedorov16-Apr-08 5:11
Alexander Fedorov16-Apr-08 5:11 
GeneralRe: How to inject javascript into webbrowser control Pin
led mike16-Apr-08 5:27
led mike16-Apr-08 5:27 
GeneralUsing .Net function in vc++ [modified] Pin
rp_suman16-Apr-08 3:01
rp_suman16-Apr-08 3:01 
GeneralRe: Using .Net function in vc++ Pin
Iain Clarke, Warrior Programmer16-Apr-08 3:28
Iain Clarke, Warrior Programmer16-Apr-08 3:28 
GeneralProblem: HANDLE when same name in exe and DLL Pin
janadhana16-Apr-08 1:50
janadhana16-Apr-08 1:50 
Hi All,
When there is a global HANDLE to an Event(unnamed) in a exe and another HANDLE in DLL to an Event(named) with the same name, will ResetEvent/SetEvent called in exe trigger the event wait in DLL?

Hope you understand the Q. Here is more explanation.

EXE --> declare HANDLE g_evt= CreateEvent()
DLL --> declare HANDLE g_evt = Createevent(name)



Exe(main thread) {  <br />
              SetEvent(g_evt); <br />
                 call to dll function x()...<br />
              }<br />
  <br />
<br />
<br />
  DLL(main thread) x()<br />
                    { <br />
                     ResetEvent(g_evt)<br />
                     //createThread(newthread);<br />
                     waitforsingleobjectex(INFINITE, g_evt,TRUE);<br />
                         dosomething();<br />
                    }<br />
 <br />
<br />
<br />
        newthread()<br />
         {<br />
           log<br />
          setevent(g_evt);<br />
         }


when setevent is called in the exe, I see that the there is no wait
and dosomething() is called rightaway. Actually it should be waiting for the newthread() to execute and set the event. Since the call is commented it should be waiting for ever.
Setevent in exe is called for some other thread that is part of the exe. But it is signalling the dll wait object. Please kindly let me know if my reasoning is correct?

Thanks & Regards,
Dhana

GeneralRe: Problem: HANDLE when same name in exe and DLL Pin
Iain Clarke, Warrior Programmer16-Apr-08 2:10
Iain Clarke, Warrior Programmer16-Apr-08 2:10 
GeneralRe: Problem: HANDLE when same name in exe and DLL Pin
janadhana16-Apr-08 2:17
janadhana16-Apr-08 2:17 

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.