Click here to Skip to main content
16,005,114 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: volatile variable without volatile!!!!!!!!!!!!!!!!! Pin
toxcct29-Nov-05 0:39
toxcct29-Nov-05 0:39 
GeneralRe: volatile variable without volatile!!!!!!!!!!!!!!!!! Pin
Pegasus Kiddo29-Nov-05 0:53
Pegasus Kiddo29-Nov-05 0:53 
GeneralRe: volatile variable without volatile!!!!!!!!!!!!!!!!! Pin
hariharasuthan29-Nov-05 1:20
hariharasuthan29-Nov-05 1:20 
GeneralRe: volatile variable without volatile!!!!!!!!!!!!!!!!! Pin
toxcct29-Nov-05 2:02
toxcct29-Nov-05 2:02 
GeneralRe: volatile variable without volatile!!!!!!!!!!!!!!!!! Pin
toxcct29-Nov-05 2:06
toxcct29-Nov-05 2:06 
GeneralRe: volatile variable without volatile!!!!!!!!!!!!!!!!! Pin
S. Senthil Kumar4-Dec-05 2:55
S. Senthil Kumar4-Dec-05 2:55 
AnswerRe: volatile variable without volatile!!!!!!!!!!!!!!!!! Pin
Jörgen Sigvardsson2-Dec-05 15:01
Jörgen Sigvardsson2-Dec-05 15:01 
QuestionDLL export function should wait for a flag set from WndProc - OnDeviceCahnge. How?? Pin
kk_vp28-Nov-05 21:36
kk_vp28-Nov-05 21:36 
Hi,

I have an MFC application which talks to a DLL which talks to driver to send/receive data from a device.

When I send a command using the dllexport functions, I need the dllexport function to wait for a flag which will be set by the WndProc-OnDeviceChange function and dllexport funtion should return with some data which will be available after the flag is set.
I used a while loop in the dllexport functions checking for the flag and was setting the flag in WndProc assuming that the dllexport function and WndProc runs on different threads.
But this is not working. The application hangs.D'Oh! | :doh:

Can you please suggest me another mechanism/logic to do this ?

- KK
AnswerRe: DLL export function should wait for a flag set from WndProc - OnDeviceCahnge. How?? Pin
hariharasuthan29-Nov-05 1:24
hariharasuthan29-Nov-05 1:24 
GeneralRe: DLL export function should wait for a flag set from WndProc - OnDeviceCahnge. How?? Pin
kk_vp29-Nov-05 2:07
kk_vp29-Nov-05 2:07 
QuestionGrabbing the Class from DLL Pin
Bobamagoo28-Nov-05 21:20
Bobamagoo28-Nov-05 21:20 
AnswerRe: Grabbing the Class from DLL Pin
Nish Nishant29-Nov-05 0:18
sitebuilderNish Nishant29-Nov-05 0:18 
GeneralRe: Grabbing the Class from DLL Pin
Bobamagoo29-Nov-05 1:00
Bobamagoo29-Nov-05 1:00 
Question[Interview Question ] Difference between C++ Structure and Class Pin
sudeesht28-Nov-05 20:32
sudeesht28-Nov-05 20:32 
AnswerRe: [Interview Question ] Difference between C++ Structure and Class Pin
toxcct28-Nov-05 21:34
toxcct28-Nov-05 21:34 
QuestionPassing Managed Code from DLLs Pin
Bobamagoo28-Nov-05 12:22
Bobamagoo28-Nov-05 12:22 
AnswerRe: Passing Managed Code from DLLs Pin
Nish Nishant28-Nov-05 13:33
sitebuilderNish Nishant28-Nov-05 13:33 
GeneralRe: Passing Managed Code from DLLs Pin
Bobamagoo28-Nov-05 13:43
Bobamagoo28-Nov-05 13:43 
GeneralRe: Passing Managed Code from DLLs Pin
Nish Nishant28-Nov-05 14:36
sitebuilderNish Nishant28-Nov-05 14:36 
GeneralRe: Passing Managed Code from DLLs Pin
Bobamagoo28-Nov-05 15:14
Bobamagoo28-Nov-05 15:14 
QuestionStrange VS Behavior Pin
Saksida Bojan28-Nov-05 10:09
Saksida Bojan28-Nov-05 10:09 
AnswerRe: Strange VS Behavior Pin
Nish Nishant28-Nov-05 11:04
sitebuilderNish Nishant28-Nov-05 11:04 
QuestionFixed toolbars in SDI app Pin
RoyceF27-Nov-05 17:40
RoyceF27-Nov-05 17:40 
AnswerRe: Fixed toolbars in SDI app Pin
Nish Nishant28-Nov-05 11:57
sitebuilderNish Nishant28-Nov-05 11:57 
GeneralRe: Fixed toolbars in SDI app Pin
RoyceF30-Nov-05 10:13
RoyceF30-Nov-05 10:13 

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.