Originally posted by: HefnySco
I tried to make use of
Thanks alot for this wonderful sample...
HRESULT IHTMLDocument2::put_onclick(VARIANT v);
but I failed I tried many techniques but I failed ...
Please tell me how can I overcome this problem
Thnks
Originally posted by: Amit.Kadam
hi ,
this is just a querry to ur program.
What do i do if i need to launch the default browser on the machine.I dont know which browser is installed on the M/C.I need to call this browser by just clicking on the button of an MFC application.The main thing out here is that it should not open in any microsoft control.It should launch as a normal browser launches.
thanx & regards
amit
ReplyOriginally posted by: Seo
I want to use the IE's Print function without pushing the IE's Menu/print. And I want to select the printer in the program and print the page automatically.
How can I do it?
Originally posted by: bartholomeus
Would anyone know how to get the url from an active ie window to a variable in my com component i don't know how to reference the ie window. I am pretty ne at developing com's but i got stuck here. I fanyone could help me out here i'd gretaly appreciate it .
Kind regards
bart Aarts
b.aarts@bluetower.com
Originally posted by: James
if the file is not IE files, crashed when run this code:
spHtmlDocument->get_body(&spHtmlElement);
How do I know it is not IE file or not, not judge from the title of application.
Any help will be appreciated.
James
ReplyOriginally posted by: Aatish shah
I have two softwares made by me - i want to read the serial port using one software and then some decoding part and send the information to the other software , is this possible , if yes then how else is tere any other alternative.Please help me
Reply
Originally posted by: Abhi Basu Thakur
This is an excellent piece of code.
ReplyOriginally posted by: Zhefu Zhang
Dear Sir:
Thankx for your excellent sample, but it seems your ViewSource part have some memory, try to push the button and view the mem usage of your app in win2k task man, you will see it eat and eat mem. I guess it is here:
BSTR bstr;
spHtmlElement->get_outerHTML(&bstr);
m_Info.SetWindowText(CString(bstr));
Your bstr seems not be freed....................
Originally posted by: RLbabu
spHTML->execCommand(cmdID ,FALSE ,vOpt ,FALSE);
The above sequence of steps does not copy the contents of the selected text in IE into the Clipboard.Please clarify.
CComQIPtr<IHTMLDocument2, &IID_IHTMLDocument2> spHTML;
COleVariant vOpt(DISP_E_PARAMNOTFOUND, VT_ERROR);
CString temp("selectall");
BSTR cmdID = temp.AllocSysString();
spHTML->execCommand (cmdID ,FALSE ,vOpt ,FALSE);
temp = "copy";
cmdID = temp.AllocSysString();
Originally posted by: Jose Manuel Bento
If you use ShellWindows to obtain a list of running Internet
Explorer/Windows Explorer instances, it usually works fine. But if you first kill and then launch explorer.exe while other Internet Explorers are alive, then you get 0 as response to ShellWindows::GetCount(). I suppose that each time a new Internet Explorer window is launched, it notifies its webBrowser object to the Shell (managed by explorer.exe), but it does nothing when a new explorer.exe is created.
Is there any way to refresh that list while running the browsers?.
Thanks in advance.
Jose Manuel Bento
Software Engineer
Newknow Network
www.newknow.com