How to call C# public function from inside Managed C++
-
I have a C# front end DLL with a namescape FrontEnd From managed C++ I run the Dll and it works all good. Now I want to call a public function of one of the classes. In Managed C++ I have: FrontEnd::MyClass * pMyclass; That works fine but I cannot call any public class: pMyclass::MypublicFunction(arg1, arg2); Compiler error: error C2039: MypublicFunction: is not a member of 'FrontEnd::pMyclass' Any idea? Al
-
I have a C# front end DLL with a namescape FrontEnd From managed C++ I run the Dll and it works all good. Now I want to call a public function of one of the classes. In Managed C++ I have: FrontEnd::MyClass * pMyclass; That works fine but I cannot call any public class: pMyclass::MypublicFunction(arg1, arg2); Compiler error: error C2039: MypublicFunction: is not a member of 'FrontEnd::pMyclass' Any idea? Al
Fixed! namespace FrontEnd must be reserved. I changed the name and it works just fine!! Now I can create C# front ends and still use MC++ for my programs!! Awesome. I am still waiting for Microsoft to create a UI for Forms for MC++ Al:mad: