Have you successfully used the C# class in the Pro/TOOLKIT application?
Itry to call C# method in the Pro/TOOLKIT C++ application. It can be built successfully. However, the Pro/TOOLKIT DLL application cannot be loaded into Pro/ENGINEER.
To mix the C++ and C#, I use option /clr to compile the applicaiton. Maybe the issue is related to the Common Language Runtime.
Thanks very much for your help. We cannot directly call managed DLL from Pro/TOOLKIT code. However, I think we can expose managed DLL as COM, then call it in Pro/TOOLKIT. I will try it.
I tested with a simple example, the steps are as following:
1. Write a C# application.
2. Register the C# application for use with COM.
3. Write Pro/TOOLKIT application, and call the COM method.
In MSDN, there is an article "How to call a managed DLL from native Visual C++ code in Visual Studio.NET or in Visual Studio 2005".