IJW C++ / MCC++ interactivity question

  • Thread starter Thread starter saunderl
  • Start date Start date
S

saunderl

Hello Everyone,

I am extending a legacy app that will load DLL's dynamically. I've
worked out how to call C# DLL's from a mixed mode DLL.

Now I thought I'd delve farther into IJW and mixed mode by trying to
re-create the C# DLL in MC++.

I added a Win Form to the project. Now I want to create an instance of
this class (named Test) and call ShowDialog() on it like I did the C#
Win Form.

Here is a snippet from the Test.h file.

namespace ManagedXp {
public ref class Test : public System::Windows::Forms::Form
{
...
}
}

Here is the code I tried using that loaded the C# version, but I had a
#using command pointing to the C# DLL. Here I have no idea how to get
to the Test class.

ManagedXp::Test tst;
tst.ShowDialog();

The Error is:

Error 6 error C2653: 'ManagedXp' : is not a class or namespace
name c:\Documents and Settings\saul01\My Documents\Visual Studio
2005\Projects\CC2\ManagedXp\ManagedXp\ManagedXp.cpp 41


Thanks, Lee

BTW, I've yet to find a book that actually talks about MC++ in any
meaningfull way and darn few webpages that explain any of this. So, if
anyone has a book title or webpage URL, please send it my way.
 
Back
Top