RegSvr32 & Legacy COM in .NET

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
 
N

Norman Yuan

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.
 

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