Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: XMLHTTP createinstance exception Pin
CPallini19-Jun-09 3:10
mveCPallini19-Jun-09 3:10 
AnswerRe: XMLHTTP createinstance exception Pin
rrrado19-Jun-09 2:22
rrrado19-Jun-09 2:22 
GeneralRe: XMLHTTP createinstance exception Pin
Ash_VCPP19-Jun-09 2:40
Ash_VCPP19-Jun-09 2:40 
GeneralRe: XMLHTTP createinstance exception Pin
rrrado19-Jun-09 2:48
rrrado19-Jun-09 2:48 
GeneralRe: XMLHTTP createinstance exception Pin
Ash_VCPP19-Jun-09 2:51
Ash_VCPP19-Jun-09 2:51 
GeneralRe: XMLHTTP createinstance exception Pin
rrrado19-Jun-09 3:07
rrrado19-Jun-09 3:07 
QuestionNeed vista finger print for Ettercap database... Pin
vikasvds19-Jun-09 2:00
vikasvds19-Jun-09 2:00 
QuestionProblems with IWebBrowser2 and frames Pin
luigi1977197719-Jun-09 1:01
luigi1977197719-Jun-09 1:01 
Hi all,
I have the following problem with an MFC application: in my app I have embedded internet explorer via a "standard" CWebBrowser2 wrapper and everything goes well (clicks, navigation, etcetc).

In my app I need to change "on the fly" the files that IE is going to show, for example: the user clicks to "original.html" and I show "processed.html", where processed.html is created on the fly from some dbase.

Till now I have done it using a OnBeforeNavigate2Explorer1 function like:

void CMyDlg::OnBeforeNavigate2Explorer1(LPDISPATCH pDisp,
VARIANT FAR* URL,
VARIANT FAR* Flags,
VARIANT FAR* TargetFrameName,
VARIANT FAR* PostData,
VARIANT FAR* Headers,
BOOL FAR* Cancel)
{

if( is_an_unprocessed_file( URL ))
{
// given the URL I create the output I want to show
CreateMyProcessedFile(URL,"processed.html");

// cancel navigation of the original file
*Cancel = (VARIANT_BOOL) 0xffff;

// fire navigation to the processed file
m_browser.Navigate("processed.html",Flags,TargetFrameName,PostData,Headers);
return;
}
// if we are here IE is going to visit a processed file: it's ok.
*Cancel = (VARIANT_BOOL) 0x0;
}

everything works fine as far as original.html does not use frames.....

If original.html uses frames (either a frameset or an iframe) the "child" documents are not shown inside the main one but in a new window, i.e. a standard IE window pops up.
I have tried something with the TargetFrameName variable but with no luck...

Do you have any suggestion??
Thank you!
Luigi


PS: I am running these tests in XP with IE6.
AnswerRe: Problems with IWebBrowser2 and frames Pin
led mike19-Jun-09 4:35
led mike19-Jun-09 4:35 
GeneralRe: Problems with IWebBrowser2 and frames Pin
luigi1977197719-Jun-09 4:43
luigi1977197719-Jun-09 4:43 
GeneralRe: Problems with IWebBrowser2 and frames Pin
led mike19-Jun-09 5:46
led mike19-Jun-09 5:46 
GeneralRe: Problems with IWebBrowser2 and frames Pin
luigi1977197721-Jun-09 22:52
luigi1977197721-Jun-09 22:52 
QuestionCode for finding eigenvectors and eigenvalues Pin
shyampasari19-Jun-09 0:45
shyampasari19-Jun-09 0:45 
AnswerRe: Code for finding eigenvectors and eigenvalues Pin
chandu00419-Jun-09 0:50
chandu00419-Jun-09 0:50 
GeneralRe: Code for finding eigenvectors and eigenvalues Pin
shyampasari19-Jun-09 0:56
shyampasari19-Jun-09 0:56 
GeneralRe: Code for finding eigenvectors and eigenvalues Pin
harold aptroot19-Jun-09 0:59
harold aptroot19-Jun-09 0:59 
AnswerRe: Code for finding eigenvectors and eigenvalues Pin
CPallini19-Jun-09 1:36
mveCPallini19-Jun-09 1:36 
AnswerRe: Code for finding eigenvectors and eigenvalues Pin
Member 1483497917-May-20 4:02
Member 1483497917-May-20 4:02 
QuestionModeless dialog hangs up Pin
bhanu_850919-Jun-09 0:35
bhanu_850919-Jun-09 0:35 
AnswerRe: Modeless dialog hangs up Pin
Jijo.Raj19-Jun-09 0:49
Jijo.Raj19-Jun-09 0:49 
AnswerRe: Modeless dialog hangs up Pin
Michael Schubert19-Jun-09 0:51
Michael Schubert19-Jun-09 0:51 
AnswerRe: Modeless dialog hangs up Pin
Luc Pattyn19-Jun-09 0:59
sitebuilderLuc Pattyn19-Jun-09 0:59 
GeneralRe: Modeless dialog hangs up Pin
bhanu_850919-Jun-09 1:26
bhanu_850919-Jun-09 1:26 
GeneralRe: Modeless dialog hangs up Pin
Michael Schubert19-Jun-09 1:48
Michael Schubert19-Jun-09 1:48 
QuestionCalculating Entropy of a file and coding it using Hamming Pin
kordellas18-Jun-09 23:44
kordellas18-Jun-09 23:44 

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.