Click here to Skip to main content
16,005,169 members
Home / Discussions / COM
   

COM

 
GeneralRe: Help with _variant_t Pin
Rory Solley26-Apr-04 21:56
Rory Solley26-Apr-04 21:56 
GeneralRe: Help with _variant_t Pin
f6427-Apr-04 5:44
f6427-Apr-04 5:44 
GeneralRe: Help with _variant_t Pin
benwestgarth27-Apr-04 12:41
benwestgarth27-Apr-04 12:41 
GeneralRe: Help with _variant_t Pin
Milton Karimbekallil26-Apr-04 23:09
Milton Karimbekallil26-Apr-04 23:09 
GeneralIdentifying an unknown error Pin
Kaleb Pederson26-Apr-04 8:52
Kaleb Pederson26-Apr-04 8:52 
GeneralRe: Identifying an unknown error Pin
Mike Dimmick26-Apr-04 23:26
Mike Dimmick26-Apr-04 23:26 
GeneralRe: Identifying an unknown error Pin
Kaleb Pederson27-Apr-04 9:36
Kaleb Pederson27-Apr-04 9:36 
QuestionEasily find IID, CLSID, ProgID? Pin
Kaleb Pederson26-Apr-04 7:09
Kaleb Pederson26-Apr-04 7:09 
I'm just starting to learn COM and have found quite a few decent tutorials. However, none of them explain the easiest way to get the IID, CLISID, and ProgID. In fact, they all generally assume that it is known.

I have a 3rd party DLL that I'm working with. I have done a #import "dllname.dll" and have the generated C++ wrapper to look at.

In order to find the ProgID, I opened up the OLE/COM Object viewer, and navigated to the library in question. Then I found the class names that I was interested in. After having the class names, I went to regedit and pulled up HKLM\Software\Classes\CLSID\<id> by doing a find on the class name, then looked at the ProgID entry.

At this point, I can call CLSIDFromProgID and then CoCreateInstance successfully using a CComPtr<IClassType>. But, if I still don't know how to get at the IID that I would need should I call CoCreateInstance directly without a CComPtr.

What's the best way to get at the IID? I also presume that there's a better way to get at the CLSID and ProgID?
AnswerRe: Easily find IID, CLSID, ProgID? Pin
Prakash Nadar26-Apr-04 7:51
Prakash Nadar26-Apr-04 7:51 
GeneralRe: Easily find IID, CLSID, ProgID? Pin
Kaleb Pederson26-Apr-04 8:46
Kaleb Pederson26-Apr-04 8:46 
GeneralRe: Easily find IID, CLSID, ProgID? Pin
Prakash Nadar26-Apr-04 18:01
Prakash Nadar26-Apr-04 18:01 
GeneralRe: Easily find IID, CLSID, ProgID? Pin
Kaleb Pederson27-Apr-04 9:33
Kaleb Pederson27-Apr-04 9:33 
Questionhow to maintain relationship between parent and child activeX control Pin
Abhi Lahare26-Apr-04 0:49
Abhi Lahare26-Apr-04 0:49 
AnswerRe: how to maintain relationship between parent and child activeX control Pin
Jitendra gangwar27-Apr-04 20:20
Jitendra gangwar27-Apr-04 20:20 
GeneralForward declaration error of ICallFactory Pin
shahzi25-Apr-04 20:34
shahzi25-Apr-04 20:34 
GeneralRe: Forward declaration error of ICallFactory Pin
Mike Dimmick26-Apr-04 23:30
Mike Dimmick26-Apr-04 23:30 
GeneralRe: Forward declaration error of ICallFactory Pin
shahzi29-Apr-04 20:19
shahzi29-Apr-04 20:19 
Generalnon-blocking Method Calling from COM Client Pin
shahzi23-Apr-04 22:27
shahzi23-Apr-04 22:27 
GeneralPass by Value or by Reference Pin
normanordas22-Apr-04 21:15
normanordas22-Apr-04 21:15 
GeneralRe: Pass by Value or by Reference Pin
Mike Dimmick23-Apr-04 9:24
Mike Dimmick23-Apr-04 9:24 
GeneralUsing ISyncMgrRegister Pin
jparsons22-Apr-04 19:57
jparsons22-Apr-04 19:57 
GeneralRe: Using ISyncMgrRegister Pin
Mike Dimmick23-Apr-04 9:26
Mike Dimmick23-Apr-04 9:26 
GeneralRe: Using ISyncMgrRegister Pin
jparsons23-Apr-04 11:58
jparsons23-Apr-04 11:58 
GeneralRe: Using ISyncMgrRegister Pin
MichaelPine17-Apr-05 22:07
MichaelPine17-Apr-05 22:07 
Generalerror in loading .dll Pin
Peter GW22-Apr-04 5:17
Peter GW22-Apr-04 5:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.