473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

[MFC] Using IWebBrowser2 => Navigate with TargetFrameName

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
2 3412
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Jalal | last post by:
I am trying to use numeric_limits<double>::min() in an MFC application in Microsoft Visual C++.NET 2003. I am having some difficulties here. The following are the parts of a simple program I wrote...
1
by: Tim Bücker | last post by:
Hello. I am transfering an mfc project to an atl one. Unfortunately the mfc CFileDialog is used in the code and I don´t have a clue about the best way to get around this. Are there any...
0
by: ringos75 | last post by:
hi, i've done an application that it have to link dynamically some my dll (plugin). In debug mode (Shared MFC DLL) i haven't any problem. If i try to compile the project in debug mode and link...
0
by: Husam | last post by:
Hi EveryBody: I got this decleration from msdn documntation which is: object.Navigate( _ url As String, _ _ _ _ )
3
by: Jay A. Moritz | last post by:
I have an application that loads IE and iterates through web pages to retrieve information from the page then activates specific controls to retrieve the next page and iterate through that page for...
7
by: Doe | last post by:
Okay, I've given up on using the "new" WebBrowser in 2005 to do what I want to do -- tabbed browsing. It seems I really need RegisterAsBrowser and Application to get each instance of a browser...
2
by: holder | last post by:
Folks, I have a simple web page with frames. I am trying to automate internet explorer to display the page and allow access to its frames. Here is the sample code : using mshtml; static void...
0
by: Dean Hallman | last post by:
Hello, I am developing a BHO that should add a custom HTTP header on a specific domain only. Don't want the header globally, otherwise I could just add a registry key. So, on...
6
by: =?Utf-8?B?U2FtZWVrc2hh?= | last post by:
Hi, I want to write a simple .net program to open a URL, fill in fields, and click on a button to submit it using .net 1.1 framework. Can someone help in suggesting the libraries I should use?...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.