Use C# .Net Framework 2.0 in Visual Studio C++ 2005

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
frashy
Earned a small fee
Earned a small fee
Posts: 16
Joined: Tue Sep 29, 2009 10:41 am

Use C# .Net Framework 2.0 in Visual Studio C++ 2005

Post by frashy »

Hello,
I need to use a dll written in C# .Net 2.0 in a code which use wxWidgets 3.0.2 in Visual studio 2005.

When I compile, using /CLR option, I have this error:

LNK4248: token typeref (01000019) not resolved

and a the run time an exception is thrown.

I've tried to put #pragma unmanaged in the setup.h file of the wxWidgtes and recompile using /CLR option, ( as described in viewtopic.php?t=37374 ) but it doesn't compile because there's C code.

I've also tried /TP option (together with /CLR), when I have compile wxWidgets, but it doesn't compile.

How can I include the dll, developed using .Net2, in my code written in C++/wxWidgets ?
Post Reply