Click here to Skip to main content
16,010,876 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: <vector> question Pin
Steve Messer5-Nov-03 7:59
Steve Messer5-Nov-03 7:59 
GeneralRe: &lt;vector&gt; question Pin
John M. Drescher5-Nov-03 8:08
John M. Drescher5-Nov-03 8:08 
GeneralRe: &lt;vector&gt; question Pin
Steve Messer5-Nov-03 8:15
Steve Messer5-Nov-03 8:15 
GeneralConvert habdle to object pointer Pin
abhay1013-Nov-03 18:55
abhay1013-Nov-03 18:55 
GeneralRe: Convert habdle to object pointer Pin
Abhishek Srivastava3-Nov-03 22:32
Abhishek Srivastava3-Nov-03 22:32 
GeneralRe: Convert habdle to object pointer Pin
abhay1014-Nov-03 19:02
abhay1014-Nov-03 19:02 
GeneralRe: Convert habdle to object pointer Pin
Steve S3-Nov-03 22:44
Steve S3-Nov-03 22:44 
GeneralRe: Convert handle to object pointer Pin
BobAshforth17-Dec-03 7:10
BobAshforth17-Dec-03 7:10 
Abhay-

I'm trying to do much the same thing myself, if I understand your message correctly. I need to access the methods/properties of COM objects that already exist within another application.

The approach I am taking (though I've not yet succeeded) is to create a CAxWindow instance using the HWND of the target window, then call the method CAxWindow::QueryControl(). (An alternative is use of the AtlAxGetControl() function.) In theory, this would provide a pointer to the object's IUnknown interface, or any other interface if the appropriate interface ID were passed in. From that, it should be possible to invoke methods of the interface that is returned.

As I said, I have not yet succeeded in this task, which is why I was scanning this message board. I'll keep trying the above approach and searching other resources, but if anyone has any insight on this topic, I would appreciate it- and I'm sure Abhay would as well! Smile | :)

Bob
GeneralProblem with GUID Pin
Gabriel.P.G3-Nov-03 16:35
Gabriel.P.G3-Nov-03 16:35 
GeneralRe: Problem with GUID Pin
umeca743-Nov-03 21:24
umeca743-Nov-03 21:24 
GeneralRe: Problem with GUID Pin
Gabriel.P.G4-Nov-03 5:57
Gabriel.P.G4-Nov-03 5:57 
Generaliterator. Pin
WREY3-Nov-03 12:46
WREY3-Nov-03 12:46 
GeneralRe: iterator. Pin
Michael Dunn3-Nov-03 16:56
sitebuilderMichael Dunn3-Nov-03 16:56 
GeneralRe: iterator. Pin
WREY3-Nov-03 17:55
WREY3-Nov-03 17:55 
GeneralRe: iterator. Pin
Stuart Dootson3-Nov-03 21:13
professionalStuart Dootson3-Nov-03 21:13 
GeneralRe: iterator. Pin
ZoogieZork3-Nov-03 19:01
ZoogieZork3-Nov-03 19:01 
GeneralRe: iterator. Pin
Stuart Dootson3-Nov-03 21:16
professionalStuart Dootson3-Nov-03 21:16 
GeneralRe: iterator. Pin
Jörgen Sigvardsson6-Nov-03 13:50
Jörgen Sigvardsson6-Nov-03 13:50 
GeneralRe: iterator. Pin
Stuart Dootson6-Nov-03 22:22
professionalStuart Dootson6-Nov-03 22:22 
GeneralRe: iterator. Pin
ZoogieZork3-Nov-03 19:14
ZoogieZork3-Nov-03 19:14 
GeneralRe: iterator. Pin
WREY3-Nov-03 22:16
WREY3-Nov-03 22:16 
GeneralDlg's; Pin
Bo Hunter3-Nov-03 12:01
Bo Hunter3-Nov-03 12:01 
GeneralRe: Dlg's; Pin
Michael Dunn3-Nov-03 16:57
sitebuilderMichael Dunn3-Nov-03 16:57 
Questioncan i set the height of the item in CListViewCtrl and add a image for every item? Pin
HeartFriend2-Nov-03 21:07
HeartFriend2-Nov-03 21:07 
AnswerRe: can i set the height of the item in CListViewCtrl and add a image for every item? Pin
Dudi Avramov3-Nov-03 4:26
Dudi Avramov3-Nov-03 4:26 

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.