By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 829 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

[MFC] Using IWebBrowser2 => Navigate with TargetFrameName

P: n/a
Can someone explain me how i can use the Navigate method to target a
specific frame within a frameset?

I tried the following way:
VARIANT vargFrame = {0};
VariantInit(&vargFrame);

vargFrame.vt = VT_BSTR;
CString mainFrame = "<anyFrame>";
vargFrame.bstrVal = mainFrame.AllocSysString();

m_browserWindow.Navigate(strURL, NULL,&vargFrame,NULL,NULL);

... But it does not work :(

Any help is highly appreciated.
Thanks in advance for your advice!

Emin.
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sun, 17 Apr 2005 17:30:50 +0200, "Emin Tarajan" <ET******@gmx.de>
wrote in comp.lang.c++:
Can someone explain me how i can use the Navigate method to target a
specific frame within a frameset?

I tried the following way:
VARIANT vargFrame = {0};
VariantInit(&vargFrame);

vargFrame.vt = VT_BSTR;
CString mainFrame = "<anyFrame>";
vargFrame.bstrVal = mainFrame.AllocSysString();

m_browserWindow.Navigate(strURL, NULL,&vargFrame,NULL,NULL);

.. But it does not work :(

Any help is highly appreciated.
Thanks in advance for your advice!

Emin.


You need to ask this in a Windows programming newsgroup like
news:comp.os.ms-windows.programmer.win32, or one of Microsoft's
support groups in the news:microsoft.public.* family. We discuss the
standard C++ language here, and third party libraries like MFC are
off-topic.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 23 '05 #2

P: n/a
"Jack Klein" <ja*******@spamcop.net> wrote in
news:hc********************************@4ax.com...
You need to ask this in a Windows programming newsgroup like
news:comp.os.ms-windows.programmer.win32, or one of Microsoft's
support groups in the news:microsoft.public.* family. We discuss the
standard C++ language here, and third party libraries like MFC are
off-topic.


Sorry and thanks for the information.

Emin.
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.