Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2007

Tip: Looking for answers? Try searching our database.

RegSvr32 & Legacy COM in .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 11 Oct 2007 14:54 GMT
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
Norman Yuan - 11 Oct 2007 15:40 GMT
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.

> Hi.  I'm not familiar with COM, but I have an upcoming .NET project
> in-which
[quoted text clipped - 8 lines]
>
> Thanks
Mike - 11 Oct 2007 20:02 GMT
Thank you for the reply.  I followed your instructions and it works thanks
again.

> Is the COM DLL registered (using regsvr32.exe?).
>
[quoted text clipped - 19 lines]
> >
> > Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.