Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CMenu - how to draw the popup arrow yourself? Pin
Sarath C11-Sep-06 21:38
Sarath C11-Sep-06 21:38 
GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
YaronNir11-Sep-06 21:55
YaronNir11-Sep-06 21:55 
GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
Waldermort12-Sep-06 0:29
Waldermort12-Sep-06 0:29 
GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
YaronNir12-Sep-06 2:57
YaronNir12-Sep-06 2:57 
GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
Steve S12-Sep-06 3:19
Steve S12-Sep-06 3:19 
AnswerRe: CMenu - how to draw the popup arrow yourself? Pin
Member 119860114-Sep-08 0:51
Member 119860114-Sep-08 0:51 
GeneralRe: CMenu - how to draw the popup arrow yourself? Pin
YaronNir14-Sep-08 0:56
YaronNir14-Sep-08 0:56 
QuestionUsing handles in DLL ... HELP Pin
pega11-Sep-06 20:55
pega11-Sep-06 20:55 
I wrote a DLL that should serve as interface to an usb-device so that it could handle different requests from different applications. The idea was that the DLL could synchronise all requests and the device should be opened only once.

The problem with this is that although i can use some shared memory between all instances using the DLL, I can't find the good solution for the single HANDLE to my file/device.

I tried starting a thread from the first instance that would hold the handle and all instances would talk with this thread, but then the problem comes when this first instance dies it takes the thread down with it ...

I also tried using two dll's. I thought I could load the 2nd dll from within the first one so that all instances of the first dll would communicate with only one instance of the second dll, but that ain't working either.

At this moment I only can get it to work if every instance/request opens and closes the handle of the file/device over and over again, but that doesn't seem the nice way to me.

So basically my question is this: How can I keep one handle of a file in a dll so that every call made to this dll can use this handle ?

Any help would be welcome thanks
AnswerRe: Using handles in DLL ... HELP Pin
Michael Dunn11-Sep-06 21:32
sitebuilderMichael Dunn11-Sep-06 21:32 
GeneralRe: Using handles in DLL ... HELP Pin
pega12-Sep-06 3:39
pega12-Sep-06 3:39 
GeneralRe: Using handles in DLL ... HELP Pin
Michael Dunn12-Sep-06 19:48
sitebuilderMichael Dunn12-Sep-06 19:48 
QuestionTo identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 20:30
Gupta Suraj11-Sep-06 20:30 
AnswerRe: To identify the 'identity' of the calling process Pin
Hamid_RT11-Sep-06 20:46
Hamid_RT11-Sep-06 20:46 
GeneralRe: To identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 21:05
Gupta Suraj11-Sep-06 21:05 
GeneralRe: To identify the 'identity' of the calling process Pin
Hamid_RT11-Sep-06 21:24
Hamid_RT11-Sep-06 21:24 
GeneralRe: To identify the 'identity' of the calling process Pin
Hamid_RT13-Sep-06 8:09
Hamid_RT13-Sep-06 8:09 
AnswerRe: To identify the 'identity' of the calling process Pin
prasad_som11-Sep-06 20:50
prasad_som11-Sep-06 20:50 
GeneralRe: To identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 21:04
Gupta Suraj11-Sep-06 21:04 
GeneralRe: To identify the 'identity' of the calling process Pin
prasad_som11-Sep-06 21:12
prasad_som11-Sep-06 21:12 
GeneralRe: To identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 23:51
Gupta Suraj11-Sep-06 23:51 
GeneralRe: To identify the 'identity' of the calling process Pin
prasad_som12-Sep-06 0:52
prasad_som12-Sep-06 0:52 
AnswerRe: To identify the 'identity' of the calling process Pin
benjymous11-Sep-06 22:37
benjymous11-Sep-06 22:37 
GeneralRe: To identify the 'identity' of the calling process Pin
Gupta Suraj11-Sep-06 23:43
Gupta Suraj11-Sep-06 23:43 
AnswerRe: To identify the 'identity' of the calling process Pin
Randor 12-Sep-06 8:33
professional Randor 12-Sep-06 8:33 
GeneralRe: To identify the 'identity' of the calling process Pin
Gupta Suraj13-Sep-06 1:04
Gupta Suraj13-Sep-06 1:04 

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.