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" <email@example.com> 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.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center