Calling COM Objects From C#

  • Thread starter Thread starter Arthur
  • Start date Start date
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
 
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 ..
 
Back
Top