Click here to Skip to main content
15,913,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Modelless dialog Pin
_AnsHUMAN_ 30-Jun-06 2:38
_AnsHUMAN_ 30-Jun-06 2:38 
GeneralRe: Modelless dialog Pin
Manjunath S30-Jun-06 2:53
Manjunath S30-Jun-06 2:53 
GeneralRe: Modelless dialog Pin
Manjunath S30-Jun-06 2:58
Manjunath S30-Jun-06 2:58 
GeneralRe: Modelless dialog Pin
_AnsHUMAN_ 30-Jun-06 3:06
_AnsHUMAN_ 30-Jun-06 3:06 
AnswerRe: Modelless dialog Pin
Cedric Moonen30-Jun-06 2:38
Cedric Moonen30-Jun-06 2:38 
QuestionDelete a directory Pin
see me30-Jun-06 2:04
see me30-Jun-06 2:04 
AnswerRe: Delete a directory Pin
Cedric Moonen30-Jun-06 2:09
Cedric Moonen30-Jun-06 2:09 
AnswerRe: Delete a directory Pin
Hamid_RT30-Jun-06 2:24
Hamid_RT30-Jun-06 2:24 
AnswerRe: Delete a directory Pin
David Crow30-Jun-06 2:29
David Crow30-Jun-06 2:29 
AnswerRe: Delete a directory Pin
neilsolent30-Jun-06 11:53
neilsolent30-Jun-06 11:53 
Questionerrors in building with boost Pin
Krishnatv30-Jun-06 2:04
Krishnatv30-Jun-06 2:04 
AnswerRe: errors in building with boost Pin
Cedric Moonen30-Jun-06 2:10
Cedric Moonen30-Jun-06 2:10 
GeneralRe: errors in building with boost Pin
Krishnatv30-Jun-06 2:18
Krishnatv30-Jun-06 2:18 
GeneralRe: errors in building with boost [modified] Pin
Cedric Moonen30-Jun-06 2:23
Cedric Moonen30-Jun-06 2:23 
GeneralRe: errors in building with boost Pin
Stephen Hewitt30-Jun-06 3:55
Stephen Hewitt30-Jun-06 3:55 
GeneralRe: errors in building with boost Pin
Cedric Moonen30-Jun-06 3:59
Cedric Moonen30-Jun-06 3:59 
Questionshow/hide button in Win32 Pin
Manjunath S30-Jun-06 1:52
Manjunath S30-Jun-06 1:52 
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

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.