How to get the com-GUID directly from its dll or exe file
COM
2
Posts
2
Posters
0
Views
1
Watching
-
Dear All, how to get the com guid directly from its dll or exe file? Maybe is it the question how to get the com guid through searching the registry for the dll or exe file ? Thanks a lot
This assumes you know the ProgID Mike { ISomeObject *pISomeObject = NULL; CLSID clsid = {0}; HRESULT hr; ... // // Create some object CLSIDFromProgID( L"SomeObjectProgID", &clsid ); hr = CoCreateInstance( clsid, NULL, CLSCTX_ALL, __uuidof(ISomeObject), (void **) &pISomeObject ); ... }