Click here to Skip to main content
16,008,469 members
Home / Discussions / COM
   

COM

 
GeneralRe: Going insane over this Pin
odiesback20-Oct-05 7:04
odiesback20-Oct-05 7:04 
GeneralRe: Going insane over this Pin
Roger Stoltz24-Oct-05 22:22
Roger Stoltz24-Oct-05 22:22 
GeneralRe: Going insane over this Pin
odiesback25-Oct-05 5:04
odiesback25-Oct-05 5:04 
AnswerRe: Going insane over this Pin
Roger Stoltz25-Oct-05 12:03
Roger Stoltz25-Oct-05 12:03 
GeneralRe: Going insane over this Pin
odiesback25-Oct-05 13:46
odiesback25-Oct-05 13:46 
GeneralRe: Going insane over this Pin
Roger Stoltz25-Oct-05 21:41
Roger Stoltz25-Oct-05 21:41 
GeneralRe: Going insane over this Pin
odiesback26-Oct-05 5:36
odiesback26-Oct-05 5:36 
QuestionHow to get the right URL before navigating the web page in the CHtmlView? Pin
superhandwolf17-Oct-05 5:53
superhandwolf17-Oct-05 5:53 
How to get the right URL before navigating the web page in the CHtmlView?

Class CHTMLControl derived from CHtmlView, and over load the virtual function OnBeforeNavigate2.

I Navigate an URL as following:
CHTMLControl* pHTMLControl;

pHTMLControl->Navigate2(strURL);

In the opened web page, there is a link whose html code is below:
<A href='javascriptclickProcess("search");'>Free Search</A>

After clicking on this link in the html view, the following function is called
void CHTMLControl::OnBeforeNavigate2(LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTargetFrameName, CByteArray& baPostedData, LPCTSTR lpszHeaders, BOOL* pbCancel)

But in this function, the value of lpszURL is "javascriptclickProcess("search");"

How can I get the right URL of the next page before navigating it?

Thanks&#61514;

AnswerRe: How to get the right URL before navigating the web page in the CHtmlView? Pin
vishalmore20-Oct-05 0:17
vishalmore20-Oct-05 0:17 
QuestionCOM Pin
Santosh Kumar7913-Oct-05 19:12
Santosh Kumar7913-Oct-05 19:12 
AnswerRe: COM Pin
User 21559714-Oct-05 9:08
User 21559714-Oct-05 9:08 
AnswerRe: COM Pin
Brian C Hart30-Dec-05 23:30
professionalBrian C Hart30-Dec-05 23:30 
QuestionHow to Create Dll Pin
Santosh Kumar7913-Oct-05 19:06
Santosh Kumar7913-Oct-05 19:06 
QuestionWhat is tlb Pin
Santosh Kumar7913-Oct-05 19:01
Santosh Kumar7913-Oct-05 19:01 
AnswerRe: What is tlb Pin
ThatsAlok13-Oct-05 20:14
ThatsAlok13-Oct-05 20:14 
QuestionWhat is IDispatch Pin
Santosh Kumar7913-Oct-05 18:57
Santosh Kumar7913-Oct-05 18:57 
AnswerRe: What is IDispatch Pin
ThatsAlok13-Oct-05 19:54
ThatsAlok13-Oct-05 19:54 
AnswerRe: What is IDispatch Pin
Brian C Hart30-Dec-05 23:34
professionalBrian C Hart30-Dec-05 23:34 
QuestionWhat is CoCreateInstance Pin
Santosh Kumar7913-Oct-05 18:52
Santosh Kumar7913-Oct-05 18:52 
AnswerRe: What is CoCreateInstance Pin
ThatsAlok13-Oct-05 19:53
ThatsAlok13-Oct-05 19:53 
AnswerRe: What is CoCreateInstance Pin
Brian C Hart30-Dec-05 23:30
professionalBrian C Hart30-Dec-05 23:30 
QuestionDebugging COM DLL Pin
Babto13-Oct-05 11:54
Babto13-Oct-05 11:54 
AnswerRe: Debugging COM DLL Pin
Kurt _B18-Oct-05 9:59
Kurt _B18-Oct-05 9:59 
QuestionError in ReleaseUMinSize build only Pin
itkid13-Oct-05 11:06
itkid13-Oct-05 11:06 
QuestionThe problem about Excel automation add-ins. Pin
dreamwinter12-Oct-05 20:49
dreamwinter12-Oct-05 20:49 

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.