Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: show/hide button in Win32 Pin
toxcct30-Jun-06 1:55
toxcct30-Jun-06 1:55 
AnswerRe: show/hide button in Win32 Pin
Cedric Moonen30-Jun-06 1:55
Cedric Moonen30-Jun-06 1:55 
AnswerRe: show/hide button in Win32 Pin
HOW WHAT30-Jun-06 16:46
HOW WHAT30-Jun-06 16:46 
QuestionCPU uasage is very high for Application Pin
zahid_ash30-Jun-06 1:42
zahid_ash30-Jun-06 1:42 
AnswerRe: CPU uasage is very high for Application Pin
Cedric Moonen30-Jun-06 1:46
Cedric Moonen30-Jun-06 1:46 
AnswerRe: CPU uasage is very high for Application Pin
Hamid_RT30-Jun-06 2:33
Hamid_RT30-Jun-06 2:33 
AnswerRe: CPU uasage is very high for Application Pin
neilsolent30-Jun-06 11:56
neilsolent30-Jun-06 11:56 
QuestionA (simple) MFC DLL Question Pin
Dave Kerr30-Jun-06 0:53
Dave Kerr30-Jun-06 0:53 
Hi,

I am writing a DLL that links dynamically to MFC. I am having a serious problem with threads; when I create a thread using AfxBeginThread, the thread process fails.
After examining with the debugger, it seems that the data I pass to the thread (a void*, which in my case is a pointer to a CObject* derived class) is being corrupted; calling ASSERT_KINDOF on the object fails (the actual failure is that internally the object cannot call GetRuntimeClass) and skipping ASSERT_KINDOF and simply calling a function of the class fails.

It seems the object's virtual function table is being problematic. At the beginning of every possible relevant function I have used AFX_MANAGE_STATE(AfxGetStaticModuleState()); to see if this helps. It doesn't.

Is there an in-built limitation to threading like this in DLLs? BTW this is not an MFC extension DLL, just a dll that dynamically links to MFC.

I have a big deadline approaching and any help would be enormously appreciated!

Thanks in advance!

Dave Kerr
QuestionRe: A (simple) MFC DLL Question Pin
Sarath C30-Jun-06 0:58
Sarath C30-Jun-06 0:58 
AnswerRe: A (simple) MFC DLL Question Pin
Dave Kerr30-Jun-06 1:17
Dave Kerr30-Jun-06 1:17 
Questionpicture Pin
ashish dogra30-Jun-06 0:36
ashish dogra30-Jun-06 0:36 
AnswerRe: picture Pin
Sarath C30-Jun-06 0:46
Sarath C30-Jun-06 0:46 
AnswerRe: picture Pin
_AnsHUMAN_ 30-Jun-06 0:55
_AnsHUMAN_ 30-Jun-06 0:55 
AnswerRe: picture Pin
Hamid_RT30-Jun-06 1:13
Hamid_RT30-Jun-06 1:13 
GeneralRe: picture Pin
yogendra kaushik30-Jun-06 1:56
yogendra kaushik30-Jun-06 1:56 
GeneralRe: picture Pin
Viorel.30-Jun-06 2:26
Viorel.30-Jun-06 2:26 
GeneralRe: picture Pin
Hamid_RT30-Jun-06 2:34
Hamid_RT30-Jun-06 2:34 
GeneralRe: picture Pin
Hamid_RT30-Jun-06 2:33
Hamid_RT30-Jun-06 2:33 
AnswerRe: picture Pin
David Crow30-Jun-06 2:31
David Crow30-Jun-06 2:31 
Questionhow we get the path of a file Pin
happy_ram30-Jun-06 0:34
happy_ram30-Jun-06 0:34 
QuestionRe: how we get the path of a file Pin
Sarath C30-Jun-06 0:48
Sarath C30-Jun-06 0:48 
AnswerRe: how we get the path of a file Pin
happy_ram30-Jun-06 1:08
happy_ram30-Jun-06 1:08 
GeneralRe: how we get the path of a file Pin
_AnsHUMAN_ 30-Jun-06 1:13
_AnsHUMAN_ 30-Jun-06 1:13 
QuestionRe: how we get the path of a file Pin
Hamid_RT30-Jun-06 1:15
Hamid_RT30-Jun-06 1:15 
AnswerRe: how we get the path of a file Pin
happy_ram30-Jun-06 1:27
happy_ram30-Jun-06 1:27 

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.