How from ProgID to CLSID
In C++ COM programming, we normally need to import a .tlb file to use COM
components that other people build. However, I could not get a .tlb file
for a DLL file made from VB. How can I get around it? Specifically, How can
I get CLSID from ProgID?
Thanks in advance.
Re: How from ProgID to CLSID
"Tom" <firstname.lastname@example.org> wrote:
>In C++ COM programming, we normally need to import a .tlb file to use COM
>components that other people build. However, I could not get a .tlb file
>for a DLL file made from VB. How can I get around it? Specifically, How
>I get CLSID from ProgID?
>Thanks in advance.
You can use the Functio -- CLSIDFromProgID
Looks up a CLSID in the registry, given a ProgID.
LPCOLESTR lpszProgID, //Pointer to the ProgID
LPCLSID pclsid //Pointer to the CLSID
[in] Pointer to the ProgID whose CLSID is requested.
[out] Pointer to the retrieved CLSID on return.
The CLSID was retrieved successfully.
The registered CLSID for the ProgID is invalid.
An error occurred writing the CLSID to the registry.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL