RegSvr32 & Legacy COM in .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. I'm not familiar with COM, but I have an upcoming .NET project in-which
I'll need to program against a COM .dll. I've been told to register the
object using RegSvr32 and then I should be able to program against it.

I tried adding the dll as a reference but that didn't work.

Is it possible for me to program against a Legacy COM object w/out adding it
as a reference to a .NET project?

Thanks
 
Is the COM DLL registered (using regsvr32.exe?).

if the COM DLL is not built-in in Windows, you need

1. copy the COM DLL to the computer
2. run regsvr32.exe to register it
3. In your .NET project, open "References" dialog box, on the "COM" tab, you
should be able to find a item in the listed com libraries.

You may want to explain what "didn't work" mean.
 
Back
Top