HighTechTalks DotNet Forums  

successfully registered dll not available in COM reference list

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss successfully registered dll not available in COM reference list in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Lucy
 
Posts: n/a

Default successfully registered dll not available in COM reference list - 02-02-2010 , 04:14 PM






when i run regsvr32, it looks like a registered my dll successfully.
i get the message "DllRegisterServer in C:\...\<filename>.dll
succeeded." when i check my registry, the keys for this dll is
included. however, when i go to my project in visual studio 2008, the
dll is not listed in my available COM referemce list. any thoughts?

Reply With Quote
  #2  
Old   
Jason Newell
 
Posts: n/a

Default Re: successfully registered dll not available in COM reference list - 02-02-2010 , 04:22 PM






Assuming that you're trying to register a managed assembly, see:
http://msdn.microsoft.com/en-us/library/tzat5yw6%28VS.80%29.aspx

Also note that you're probably going to want to use the /codebase switch.

It doesn't make much sense to me though that regsvr32 would have
(repotedly) worked on a managed assembly.

Jason Newell
www.jasonnewell.net


Lucy wrote:
Quote:
when i run regsvr32, it looks like a registered my dll successfully.
i get the message "DllRegisterServer in C:\...\<filename>.dll
succeeded." when i check my registry, the keys for this dll is
included. however, when i go to my project in visual studio 2008, the
dll is not listed in my available COM referemce list. any thoughts?

Reply With Quote
  #3  
Old   
Wilson, Phil
 
Posts: n/a

Default Re: successfully registered dll not available in COM reference list - 02-09-2010 , 12:11 PM



A reference that shows up in Visual Studio is nothing to do with class
registration. That list is a list of type libraries that are registered on
the system. In most (or many) cases registering the class will register a
type library too, (when the type library is embedded in the Dll) but
there's no requirement that a COM Dll uses a custom type library. If it's
your Win32 C++ COM Dll, then you'd need to go look at why it seems like it
doesn't have an embedded type library. However if you have a separate type
library tlb file, VS will let you browse to the tlb file in the Add
Reference dialog.
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"Lucy" <lucy.sang (AT) gmail (DOT) com> wrote

Quote:
when i run regsvr32, it looks like a registered my dll successfully.
i get the message "DllRegisterServer in C:\...\<filename>.dll
succeeded." when i check my registry, the keys for this dll is
included. however, when i go to my project in visual studio 2008, the
dll is not listed in my available COM referemce list. any thoughts?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.