How to create Toolkit dll application as COM Visible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to create Toolkit dll application as COM Visible?
I want to refer the Toolkit dll application in my C# Project. So I want to make it COM Visible. Any Idea's
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
Solved! Go to Solution.
- Labels:
-
General
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Tomas,
Finally my DLL works fine with C Sharp Application...
href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Parthiban Kanna
Can you please guide me how you have achieved the same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes, have you already started with the article I have mentioned?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you post how your makefile looks like? You have probably some problem in linked libraries...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Tomas,
I have moved to win32 dll application instead of makefile project.
href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"