Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MSComm produces memory leak (the solution!) Pin
D.D. de Kerf6-Jun-01 20:56
D.D. de Kerf6-Jun-01 20:56 
GeneralDestructor not being called Pin
Miroslav Rajcic30-May-01 20:08
Miroslav Rajcic30-May-01 20:08 
GeneralRe: Destructor not being called Pin
30-May-01 20:16
suss30-May-01 20:16 
GeneralRe: Destructor not being called Pin
Miroslav Rajcic30-May-01 20:35
Miroslav Rajcic30-May-01 20:35 
GeneralRe: Destructor not being called Pin
Christian Graus30-May-01 20:41
protectorChristian Graus30-May-01 20:41 
GeneralThanks Pin
Miroslav Rajcic30-May-01 20:42
Miroslav Rajcic30-May-01 20:42 
QuestionW2K/multi-CPU overlapped sockets bug? Pin
Taka Muraoka30-May-01 19:45
Taka Muraoka30-May-01 19:45 
QuestionDocking Bar inside a DLL? Pin
Steve The Plant30-May-01 19:12
Steve The Plant30-May-01 19:12 
Hi!

I'm trying to load a docking bar stored inside a
DLL into my client app, but I just can't get it
to work. It asserts when I call the docking bar's
Create() method.

Inside the DLL, I'm doing all my work in a

{
AFX_MANAGE_STATE(AfxGetStaticModuleState())
// do MFC stuff here
}

block. The docking bar works on its own. It works
if I declare and create it inside the client
instead of inside the DLL.

I guess the problem comes from the fact that
I can't get a valid CFrameWnd* to pass to the
docking bar's Create() method, and I'm not
sure how to get one.

I've tried passing a pointer to the CFrameWnd of
the client app to the DLL, but I still get that
ASSERT. I've tried passing the HWND of the client
to the DLL, and then have the DLL find the right
CFrameWnd* by calling FromHandle(), but what I
get never works either. The same ASSERT fires.


The actual ASSERT (if it's helpful to know) is

ASSERT(pMap != NULL);

At line 879 in Wincore.cpp.

Does anybody have any ideas about this?

Thanks a bunch!

Steve The Plant
AnswerRe: Docking Bar inside a DLL? Pin
Tomasz Sowinski31-May-01 0:09
Tomasz Sowinski31-May-01 0:09 
GeneralNegative values in resource.h Pin
Nick Blumhardt30-May-01 14:55
Nick Blumhardt30-May-01 14:55 
GeneralRe: Negative values in resource.h Pin
Christian Graus30-May-01 15:15
protectorChristian Graus30-May-01 15:15 
GeneralCreating Remote Desktop Sharing Software Pin
30-May-01 14:23
suss30-May-01 14:23 
GeneralFrustration with BSTR* Pin
30-May-01 13:47
suss30-May-01 13:47 
GeneralRe: Frustration with BSTR* Pin
Christian Graus30-May-01 13:53
protectorChristian Graus30-May-01 13:53 
GeneralRe: Frustration with BSTR* Pin
30-May-01 14:00
suss30-May-01 14:00 
GeneralRe: Frustration with BSTR* Pin
Christian Graus30-May-01 14:13
protectorChristian Graus30-May-01 14:13 
GeneralTab Control Pin
Craig Phillips30-May-01 13:23
Craig Phillips30-May-01 13:23 
GeneralRe: Tab Control Pin
Christian Graus30-May-01 13:51
protectorChristian Graus30-May-01 13:51 
GeneralRe: Tab Control Pin
Craig Phillips30-May-01 23:06
Craig Phillips30-May-01 23:06 
GeneralRe: Tab Control Pin
Christian Graus30-May-01 23:17
protectorChristian Graus30-May-01 23:17 
GeneralRe: Tab Control Pin
Craig Phillips30-May-01 23:36
Craig Phillips30-May-01 23:36 
GeneralRe: Tab Control Pin
31-May-01 11:11
suss31-May-01 11:11 
GeneralCOleDateTime problem! Pin
Rickard Andersson2030-May-01 8:46
Rickard Andersson2030-May-01 8:46 
GeneralRe: COleDateTime problem! Pin
Ghazi H. Wadi30-May-01 11:50
Ghazi H. Wadi30-May-01 11:50 
GeneralMenuItem with Bitmap and String Pin
Paul Goodyear30-May-01 7:14
Paul Goodyear30-May-01 7:14 

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.