Re: MDI forms and Dlls (visual C++ 2005)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Okey, Nobody?

hmm. I have almost made it but there is one problem.

I can get the parent form and all it classes, but I cant cast the Form
I recieve to a MainForm (as my parent form is called). And if I try I
to #include "MainForm.h" I create a circular dependency and we all know
that C++ does not allow this (without workarounds)

I dont have access to the code right now, but I have tried something
like this:
safe_cast<MainForm ^ >(this->MdiParent);

But the compiler does not know about the MainForm class!

.