Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Operator Pin
toxcct27-Apr-04 22:41
toxcct27-Apr-04 22:41 
GeneralRe: Operator Pin
Mike Dimmick27-Apr-04 23:17
Mike Dimmick27-Apr-04 23:17 
Questionany function that can convert GUID String to GUID struct? Pin
tttonyyy27-Apr-04 21:26
tttonyyy27-Apr-04 21:26 
AnswerRe: any function that can convert GUID String to GUID struct? Pin
Michael Dunn27-Apr-04 21:42
sitebuilderMichael Dunn27-Apr-04 21:42 
GeneralSetting default directory for OnFileOpen Pin
Coremn27-Apr-04 21:18
Coremn27-Apr-04 21:18 
GeneralRe: Setting default directory for OnFileOpen Pin
Mike Dimmick28-Apr-04 1:46
Mike Dimmick28-Apr-04 1:46 
GeneralRe: Setting default directory for OnFileOpen Pin
Coremn28-Apr-04 13:49
Coremn28-Apr-04 13:49 
GeneralCoCreateInstance CLSID_WebBrowser Pin
Member 2362227-Apr-04 21:16
Member 2362227-Apr-04 21:16 
Anybody been able to get CLSID_WebBrowser to work without having to use MFC and ATL but instead with CoCreateInstance? Mainly, the problem I see is that Navigate or Navigate2 seems to fail.

My code looks something like this:

//hr = CoCreateInstance(CLSID_InternetExplorer, NULL, CLSCTX_SERVER, IID_IWebBrowser2, (void**)&Browser);

hr = CoCreateInstance(CLSID_WebBrowser, NULL ,CLSCTX_INPROC, IID_IWebBrowser2, (void**)&Browser);

CLSID_InternetExplorer seems to work fine but the only problem is I cannot query IHTMLElementRender which is a problem because I want to do a SaveToDC. I can query IHTMLElement perfectly fine though. Here's some more code I have on that.

if (FAILED(hr) || (HtmlElement == NULL))
{
printf("Error: IHTMLDocument2::get_body failed\n");
return FALSE;
}

hr = HtmlElement->QueryInterface(IID_IHTMLElementRender, (void**)&HtmlRender);

if (FAILED(hr) || (HtmlRender == NULL))
{
printf("Error: Unable to QueryInterface for IID_IHTMLElementReader\n");
return FALSE;
}

Has anybody else had this problem? I've checked all over the web and have found little for using CoCreateInstance in conjunction with IHTMLElementRender.

Thanks,
Nathan



Nathan
GeneralRe: CoCreateInstance CLSID_WebBrowser Pin
Mike Dimmick27-Apr-04 23:24
Mike Dimmick27-Apr-04 23:24 
Questioncan anybody give me code of getting RGB value form an image Pin
Member 41696027-Apr-04 20:51
Member 41696027-Apr-04 20:51 
AnswerRe: can anybody give me code of getting RGB value form an image Pin
toxcct27-Apr-04 22:32
toxcct27-Apr-04 22:32 
Generalis DDE still use? or is some thing newer Pin
quzi27-Apr-04 20:17
quzi27-Apr-04 20:17 
GeneralRe: is DDE still use? or is some thing newer Pin
David Crow28-Apr-04 3:54
David Crow28-Apr-04 3:54 
GeneralRe: is DDE still use? or is some thing newer Pin
Anonymous29-Apr-04 12:08
Anonymous29-Apr-04 12:08 
Generalneed a send email sample Pin
includeh1027-Apr-04 19:04
includeh1027-Apr-04 19:04 
GeneralRe: need a send email sample Pin
Dominik Reichl27-Apr-04 21:54
Dominik Reichl27-Apr-04 21:54 
GeneralRe: need a send email sample Pin
includeh1028-Apr-04 0:44
includeh1028-Apr-04 0:44 
GeneralRe: need a send email sample Pin
David Crow28-Apr-04 3:46
David Crow28-Apr-04 3:46 
GeneralRe: need a send email sample Pin
includeh1028-Apr-04 4:51
includeh1028-Apr-04 4:51 
GeneralRe: need a send email sample Pin
David Crow29-Apr-04 2:47
David Crow29-Apr-04 2:47 
GeneralRe: need a send email sample Pin
includeh1028-Apr-04 5:38
includeh1028-Apr-04 5:38 
GeneralOwnerdraw tab control Pin
alex.barylski27-Apr-04 18:21
alex.barylski27-Apr-04 18:21 
GeneralRe: Ownerdraw tab control Pin
mymauve2127-Apr-04 19:16
mymauve2127-Apr-04 19:16 
GeneralDirectShow: GraphEdit Pin
tttonyyy27-Apr-04 18:06
tttonyyy27-Apr-04 18:06 
GeneralDate Time Picker Problem(IDC_DATETIMEPICKER) Pin
lonely_life27-Apr-04 17:53
lonely_life27-Apr-04 17:53 

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.