Calling COM Objects From C#

A

Arthur

I'm having a problem on a particular machine with calling
a COM object from within a C# exe. The object contains a
form that will not display.

The COM object is an ActiveX Dll created in VB6. However,
when I change the object to an ActiveX Exe, the form
within the object displays.

* This seems to happen on 50% of the machines.
* They all have the .NET runtime files installed.
* The form displays when the object (as a dll) is called
from a VB6 exe on the errant machines.

Has anyone seen this before (and know how to fix it)?

Any help would be greatly appreciated! Thanks,

Arthur
 
S

soni

if u want to use a dll, u 'll have to create a wrapper class aroubd ur dll.
either add ur dll into ur project using Visual studio or use tlbimp.exe and
do this manually ..
i guess this should solve ur problem .. if u hav the .net sdk .. look for
COM component compatibility for further details ..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top