Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I want to refer the Toolkit dll application in my C# Project. So I want to make it COM Visible. Any Idea's
Solved! Go to Solution.
You don't need to create COM interface to use application in C#. It is better to create managed interface to .NET - An Overview of Managed/Unmanaged Code Interoperability
We already have our library with many Pro/Toolkit functions which we are using in C#
You don't need to create COM interface to use application in C#. It is better to create managed interface to .NET - An Overview of Managed/Unmanaged Code Interoperability
We already have our library with many Pro/Toolkit functions which we are using in C#
Hi Tomas,
I have tried many ways. I have created Win32 application executable file it is working fine.
But I am planning to create dll file for my C Sharp Project. Whenever I Calling my DLL in C# Project I am getting the below Error. May you help in this situation?
Error | 10 | error LNK2019: unresolved external symbol _ProEngineerConnectionStart referenced in function "public: __thiscall myClass::myClass(double,double)" (??0myClass@@QAE@NN@Z) | C:\TOOLKIT DEVELOPMENT\ASYNCHRONOUS APPLICATIONS\TEST 4\AsyncTestDll\AsyncTestDll\AsyncDll\main.obj | AsyncDll |
LOG FILE :
main.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
Creating library C:\TOOLKIT DEVELOPMENT\ASYNCHRONOUS APPLICATIONS\TEST 4\AsyncTest4\Debug\AsyncDll.lib and object C:\TOOLKIT DEVELOPMENT\ASYNCHRONOUS APPLICATIONS\TEST 4\AsyncTest4\Debug\AsyncDll.exp
main.obj : error LNK2019: unresolved external symbol _ProEngineerConnectIdGet referenced in function "public: __thiscall myClass::myClass(double,double)" (??0myClass@@QAE@NN@Z)
main.obj : error LNK2019: unresolved external symbol _ProEngineerConnectionStart referenced in function "public: __thiscall myClass::myClass(double,double)" (??0myClass@@QAE@NN@Z)
C:\TOOLKIT DEVELOPMENT\ASYNCHRONOUS APPLICATIONS\TEST 4\AsyncTest4\Debug\AsyncDll.dll : fatal error LNK1120: 2 unresolved externals
Hi Tomas,
Finally my DLL works fine with C Sharp Application...
Hi Parthiban Kanna
Can you please guide me how you have achieved the same?
Yes, have you already started with the article I have mentioned?
Hello Yogesh,
SImply I have exported dll using extern "C" in toolkit coding & directly loaded it into my C# Program instead of add reference method
Can you post how your makefile looks like? You have probably some problem in linked libraries...
Hi Tomas,
I have moved to win32 dll application instead of makefile project.