cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Toolkit dll application as COM Visible?

SOLVED
PARTHIBAN_K
Moonstone

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.
Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to create Toolkit dll application as COM Visible?

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#

View solution in original post

8 REPLIES 8

Re: How to create Toolkit dll application as COM Visible?

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#

View solution in original post

Re: How to create Toolkit dll application as COM Visible?

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?

Error10error 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.objAsyncDll

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

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

Re: How to create Toolkit dll application as COM Visible?

Hi Tomas,

Finally my DLL works fine with C Sharp Application...

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

Re: How to create Toolkit dll application as COM Visible?

Hi Parthiban Kanna

Can you please guide me how you have achieved the same?

Re: How to create Toolkit dll application as COM Visible?

Yes, have you already started with the article I have mentioned?

Re: How to create Toolkit dll application as COM Visible?

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

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

Re: How to create Toolkit dll application as COM Visible?

Can you post how your makefile looks like? You have probably some problem in linked libraries...

Re: How to create Toolkit dll application as COM Visible?

Hi Tomas,

    I have moved to win32 dll application instead of makefile project.

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
Announcements