How compile this managed c++ help urgently needed
-
here CSharpHelloWorld.netmodule is in the bin folder of the managed c++ project #include #include "CSharpHelloWorld.netmodule" #include namespace System; public __gc class HelloWorldC { public: CSharpHelloWorld __gc *t; // Provide .NET interop and garbage collecting to the pointer. HelloWorldC() { t = new CSharpHelloWorld(); // Assign the reference a new instance of the object } // This inline function is called from the C++ Code void callCSharpHelloWorld() { t->displayHelloWorld(); } }; thanks in advance
-
here CSharpHelloWorld.netmodule is in the bin folder of the managed c++ project #include #include "CSharpHelloWorld.netmodule" #include namespace System; public __gc class HelloWorldC { public: CSharpHelloWorld __gc *t; // Provide .NET interop and garbage collecting to the pointer. HelloWorldC() { t = new CSharpHelloWorld(); // Assign the reference a new instance of the object } // This inline function is called from the C++ Code void callCSharpHelloWorld() { t->displayHelloWorld(); } }; thanks in advance
Mmmm, what about if you ask in the correct forum? Maybe you get a better answer.
Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson