Click here to Skip to main content
16,009,482 members
Home / Discussions / COM
   

COM

 
GeneralRe: COM book recommendations? Pin
moliate10-Apr-02 9:46
moliate10-Apr-02 9:46 
GeneralUserId of calling process Pin
StefanM8-Apr-02 3:53
StefanM8-Apr-02 3:53 
GeneralCOM object passing Pin
7-Apr-02 16:17
suss7-Apr-02 16:17 
GeneralRe: COM object passing Pin
Mazdak8-Apr-02 4:29
Mazdak8-Apr-02 4:29 
GeneralRe: COM object passing Pin
8-Apr-02 14:53
suss8-Apr-02 14:53 
GeneralRe: COM object passing Pin
Mazdak9-Apr-02 1:19
Mazdak9-Apr-02 1:19 
GeneralRe: COM object passing Pin
el davo9-Apr-02 18:54
el davo9-Apr-02 18:54 
GeneralRe: COM object passing Pin
Sam Strachan10-Apr-02 3:16
Sam Strachan10-Apr-02 3:16 
Ok, I've not tried this, but import the ADO type library doing something like this...

#import "c:/program files/common files/system/ado/msado15.dll" no_namespace rename("EOF", "EndOfFile")

Then you need an input parameter to hold the pointer to it. I suppose you could use an IUnknown pointer, but then why not just use a _Connection pointer instead (you'll see it at the top of the msado15.tlh).

So, in your IDL should be a line like...

[id(2), helpstring("method GetField")] HRESULT GetField([in] _Connection * pAdoCn, [in] BSTR bsFieldname, [out, retval] BSTR * pbsVal);

Then you can just use that pointer. (Attach the COM Smart Pointer to it though and your life will be easier... ConnectionPtr.Attach(...))

In the event that that doesn't work though, try it with IUnknown * pUnk instead, then do a QueryInterface() on it, passing the Connection Interface to it.

Good luck,

S
GeneralRe: COM object passing Pin
el davo10-Apr-02 19:24
el davo10-Apr-02 19:24 
GeneralRe: COM object passing Pin
Sam Strachan10-Apr-02 22:36
Sam Strachan10-Apr-02 22:36 
GeneralITextDocument??? UGH!!! Pin
Dave_7-Apr-02 12:36
Dave_7-Apr-02 12:36 
GeneralCreating Search Engine Component for Intranet Pin
6-Apr-02 19:57
suss6-Apr-02 19:57 
QuestionHow to access method in other object in COM Pin
chq126-Apr-02 11:13
chq126-Apr-02 11:13 
AnswerRe: How to access method in other object in COM Pin
Mazdak6-Apr-02 17:52
Mazdak6-Apr-02 17:52 
GeneralRe: How to access method in other object in COM Pin
chq127-Apr-02 8:32
chq127-Apr-02 8:32 
GeneralRe: How to access method in other object in COM Pin
Mazdak7-Apr-02 9:21
Mazdak7-Apr-02 9:21 
GeneralRe: How to access method in other object in COM Pin
chq127-Apr-02 16:30
chq127-Apr-02 16:30 
GeneralCoUninitialize doesn't return Pin
sefip3-Apr-02 21:24
sefip3-Apr-02 21:24 
Generalenable delegation to work Pin
David Dal Zot3-Apr-02 3:38
David Dal Zot3-Apr-02 3:38 
QuestionWhat does this code do? Pin
Gerald Schwab1-Apr-02 16:57
Gerald Schwab1-Apr-02 16:57 
AnswerRe: What does this code do? Pin
Michael Dunn1-Apr-02 21:15
sitebuilderMichael Dunn1-Apr-02 21:15 
GeneralRe: What does this code do? Pin
Gerald Schwab2-Apr-02 5:28
Gerald Schwab2-Apr-02 5:28 
GeneralRe: What does this code do? Pin
Michael Dunn5-Apr-02 16:19
sitebuilderMichael Dunn5-Apr-02 16:19 
GeneralRe: What does this code do? Pin
Nick Parker5-Apr-02 10:02
protectorNick Parker5-Apr-02 10:02 
GeneralRe: What does this code do? Pin
Michael Dunn5-Apr-02 16:20
sitebuilderMichael Dunn5-Apr-02 16:20 

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.