How can I get the ProgID of a COM dll if I did not have the source code of the COM ?  
Author Message
Jakein2006





PostPosted: Visual C++ General, How can I get the ProgID of a COM dll if I did not have the source code of the COM ? Top

How can I get the ProgID of a COM dll if I did not have the source code of the COM



I appreciate your help.




Visual C++9  
 
 
Aleksandr Tokarev





PostPosted: Visual C++ General, How can I get the ProgID of a COM dll if I did not have the source code of the COM ? Top

You can use #import derective to include - com-object wrappers in you code.

Code like,

#import <msxml3.dll>

In this case the should be a class library compiled in dll.

Or use regedit, to find your dll in registry sub-key HKCR. To find CLSID of any com-component in your dll server, then find progId by classid. In this case server should be registered.


 
 
Harold Jimenez





PostPosted: Visual C++ General, How can I get the ProgID of a COM dll if I did not have the source code of the COM ? Top

Why are you trying to get the ProgID

If you are trying to use the COM library from an automation language, the library your are trying to use needs to support automation.

Also you need the type library (either embedded or explicit as .tlb file) to use the COM server.



 
 
Sahir Shah





PostPosted: Visual C++ General, How can I get the ProgID of a COM dll if I did not have the source code of the COM ? Top

You can use OLE/COM Object Viewer to find the ProgID. It is an external tool available with Visual Studio 2005. Some tools can be found in the Tools menu bar by default. Others such as OLE/COM Object Viewer need to be added. Please see http://msdn2.microsoft.com/en-us/library/76712d27(vs.80).aspx


 
 
Damien Watkins - MSFT





PostPosted: Visual C++ General, How can I get the ProgID of a COM dll if I did not have the source code of the COM ? Top

Hello Jake

Re: How can I get the ProgID of a COM dll if I did not have the source code of the COM

Please take the time to read the scope of this Forum and post your questions to the right Forum/newsgroup: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1

For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups, such as the COM newsgroup http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ole&lang=en&cr=US.

Please stop posting questions outside the scope of this Forum.

OTP

Thanks

Damien