Click here to Skip to main content
15,921,941 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralQuestion about bind2nd. Pin
George214-Feb-03 20:04
George214-Feb-03 20:04 
GeneralRe: Question about bind2nd. Pin
AlexO15-Feb-03 5:43
AlexO15-Feb-03 5:43 
GeneralRe: Question about bind2nd. Pin
George215-Feb-03 17:04
George215-Feb-03 17:04 
GeneralIClassFactory2 Pin
Raphael Amorim14-Feb-03 4:00
professionalRaphael Amorim14-Feb-03 4:00 
QuestionIDispatch from atl-control??? Pin
Zizilamoroso14-Feb-03 1:35
Zizilamoroso14-Feb-03 1:35 
AnswerRe: IDispatch from atl-control??? Pin
geo_m14-Feb-03 2:37
geo_m14-Feb-03 2:37 
GeneralRe: IDispatch from atl-control??? Pin
Zizilamoroso14-Feb-03 4:06
Zizilamoroso14-Feb-03 4:06 
GeneralRe: IDispatch from atl-control??? Pin
geo_m14-Feb-03 4:27
geo_m14-Feb-03 4:27 
the _Module refers to the current DLL (module). I no way how to test the include stuff on my compiler now, but generally somewhere in your code is extern CComModule _Module;
and the #include <atlcom.h> must stay behind that definition from the point of view of compiler (this is for VC6, I assume you have)

But the second part is really weird. Fortunatelly I had some project with WebBrowser manipulation, so I fired it up and tested the following code:

CComPtr<IWebBrowser2> m_spBrowser;<br />
// ...create the browser etc...<br />
CComDispatchDriver drva( m_spBrowser );<br />
_variant_t vtOut;<br />
drva.GetPropertyByName( L"visible", &vtOut );


on the end I had in vtOut vt=VT_BOOL value=VARIANT_TRUE
then at least on my IE6 the property is included = the way you are trying to go is right.
I would suggest to play with the headers a bit, or if it will take more than 10 minutes look to the srcs of the CComDispatchDriver and cut only the parts you need (but duplicating code is really the last chance solution Smile | :) )
GeneralRe: IDispatch from atl-control??? Pin
Zizilamoroso14-Feb-03 4:54
Zizilamoroso14-Feb-03 4:54 
GeneralRe: IDispatch from atl-control??? Pin
geo_m14-Feb-03 5:14
geo_m14-Feb-03 5:14 
GeneralRe: IDispatch from atl-control??? Pin
Zizilamoroso14-Feb-03 6:01
Zizilamoroso14-Feb-03 6:01 
GeneralRe: IDispatch from atl-control??? Pin
Zizilamoroso14-Feb-03 6:28
Zizilamoroso14-Feb-03 6:28 
GeneralRe: IDispatch from atl-control??? Pin
geo_m14-Feb-03 10:55
geo_m14-Feb-03 10:55 
GeneralQuestion about uninitialized memory. Pin
George214-Feb-03 1:03
George214-Feb-03 1:03 
GeneralRe: Question about uninitialized memory. Pin
Tim Smith14-Feb-03 2:19
Tim Smith14-Feb-03 2:19 
GeneralRe: Question about uninitialized memory. Pin
George214-Feb-03 2:27
George214-Feb-03 2:27 
GeneralRe: Question about uninitialized memory. Pin
Tim Smith14-Feb-03 3:20
Tim Smith14-Feb-03 3:20 
GeneralRe: Question about uninitialized memory. Pin
George214-Feb-03 3:24
George214-Feb-03 3:24 
GeneralRe: Question about uninitialized memory. Pin
Joaquín M López Muñoz14-Feb-03 4:16
Joaquín M López Muñoz14-Feb-03 4:16 
GeneralRe: Question about uninitialized memory. Pin
Tim Smith14-Feb-03 7:03
Tim Smith14-Feb-03 7:03 
GeneralRe: Question about uninitialized memory. Pin
George214-Feb-03 17:17
George214-Feb-03 17:17 
GeneralRe: Question about uninitialized memory. Pin
George214-Feb-03 17:16
George214-Feb-03 17:16 
GeneralProblems with HTMLElementEvents2 Pin
Xavyer13-Feb-03 2:23
Xavyer13-Feb-03 2:23 
GeneralRe: Problems with HTMLElementEvents2 Pin
stereo16-Feb-03 5:57
stereo16-Feb-03 5:57 
GeneralRe: Problems with HTMLElementEvents2 Pin
Xavyer16-Feb-03 8:04
Xavyer16-Feb-03 8:04 

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.