Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to set Excel App Invisible Pin
SPGV14-Feb-03 0:43
SPGV14-Feb-03 0:43 
GeneralDPI control Pin
dennisV14-Feb-03 0:29
dennisV14-Feb-03 0:29 
GeneralSymbol already defined in object / Global variables Pin
-Dy14-Feb-03 0:16
-Dy14-Feb-03 0:16 
GeneralRe: Symbol already defined in object / Global variables Pin
Michael Dunn14-Feb-03 0:27
sitebuilderMichael Dunn14-Feb-03 0:27 
QuestionHow to grab text from text-based apps/objects?!?!!? Solution = money! Pin
Tommy Svensson13-Feb-03 23:57
Tommy Svensson13-Feb-03 23:57 
AnswerRe: How to grab text from text-based apps/objects?!?!!? Solution = money! Pin
MAAK14-Feb-03 1:11
MAAK14-Feb-03 1:11 
GeneralEnhanced MetaFile Pin
satyavasu13-Feb-03 22:59
satyavasu13-Feb-03 22:59 
Generalabstracting to IDispatch Pin
Zizilamoroso13-Feb-03 22:59
Zizilamoroso13-Feb-03 22:59 
I want to use the internet explorer inside my application. This works fine:

AtlAxWinInit();

HWND hwndChild=::CreateWindow(  "AtlAxWin",
                "Shell.Explorer.1",
                WS_CHILD|WS_VISIBLE,
                0,0,0,0,
                hwnd,NULL,
                ::GetModuleHandle(NULL),
                NULL);

IUnknown *pUnk=NULL;
AtlAxGetControl(hwndChild,&pUnk);
CComPtr<IWebBrowser2> spBrowser;
pUnk->QueryInterface(IID_IWebBrowser2,(void**)&spBrowser);
if(spBrowser)
    spBrowser->put_Visible(VARIANT_TRUE);


But, I want this to be more abstract. How can I use the interface IDispatch instead.

My attempt to abstract it, returned a DISP_E_UNKNOWNNAME while calling GetIDsOfNames with "Visible" (it IS a member of IWebBrowser2). It has to be something like that... Dead | X|


using: [VISUAL STUDIO 6.0] [WIN98/2]

GeneralCompare two bitmap Pin
jeremysay13-Feb-03 22:55
jeremysay13-Feb-03 22:55 
GeneralRe: Compare two bitmap Pin
User 665813-Feb-03 23:00
User 665813-Feb-03 23:00 
GeneralRe: Compare two bitmap Pin
jeremysay13-Feb-03 23:05
jeremysay13-Feb-03 23:05 
GeneralRe: Compare two bitmap Pin
MAAK14-Feb-03 1:31
MAAK14-Feb-03 1:31 
GeneralRe: Compare two bitmap Pin
jeremysay14-Feb-03 2:12
jeremysay14-Feb-03 2:12 
GeneralRe: Compare two bitmap Pin
MAAK14-Feb-03 2:41
MAAK14-Feb-03 2:41 
GeneralRe: Compare two bitmap Pin
jeremysay14-Feb-03 3:18
jeremysay14-Feb-03 3:18 
GeneralRe: Compare two bitmap Pin
jeremysay14-Feb-03 4:27
jeremysay14-Feb-03 4:27 
GeneralRe: Compare two bitmap Pin
MAAK14-Feb-03 6:14
MAAK14-Feb-03 6:14 
GeneralRe: Compare two bitmap Pin
jeremysay14-Feb-03 10:23
jeremysay14-Feb-03 10:23 
GeneralRe: Compare two bitmap Pin
MAAK14-Feb-03 15:13
MAAK14-Feb-03 15:13 
GeneralRe: Compare two bitmap Pin
jeremysay14-Feb-03 21:48
jeremysay14-Feb-03 21:48 
GeneralRe: Compare two bitmap Pin
MAAK14-Feb-03 23:14
MAAK14-Feb-03 23:14 
GeneralRe: Compare two bitmap Pin
jeremysay17-Feb-03 3:10
jeremysay17-Feb-03 3:10 
GeneralRe: Compare two bitmap Pin
jeremysay14-Feb-03 5:01
jeremysay14-Feb-03 5:01 
GeneralRe: Compare two bitmap Pin
includeh1014-Feb-03 23:57
includeh1014-Feb-03 23:57 
GeneralMFC accelerators & activeX Pin
peterchen13-Feb-03 22:47
peterchen13-Feb-03 22:47 

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.