Click here to Skip to main content
16,011,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: class template methods Pin
jon-8010-Aug-06 7:19
professionaljon-8010-Aug-06 7:19 
AnswerRe: class template methods [modified] Pin
Zac Howland10-Aug-06 7:38
Zac Howland10-Aug-06 7:38 
QuestionRe: class template methods Pin
jon-8010-Aug-06 7:21
professionaljon-8010-Aug-06 7:21 
AnswerRe: class template methods Pin
Zac Howland10-Aug-06 7:41
Zac Howland10-Aug-06 7:41 
GeneralRe: class template methods Pin
jon-8010-Aug-06 9:18
professionaljon-8010-Aug-06 9:18 
QuestionNeed help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 5:13
Paul Groetzner9-Aug-06 5:13 
QuestionRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow9-Aug-06 5:58
David Crow9-Aug-06 5:58 
AnswerRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 6:04
Paul Groetzner9-Aug-06 6:04 
In a variable. This is the code I am using to test....

void CLoadWebSite::OnNewWindow3(LPDISPATCH FAR* ppDisp, BOOL FAR* Cancel, BSTR Flags, BSTR URLContext, BSTR URL)
{
// Convert BSTR to CSTring
CString url = "";
VARIANT vnt;
vnt.bstrVal = URL;
url = vnt.bstrVal;

*Cancel = TRUE; // Prevent IE spawning

AfxMessageBox(url); // display popup of url value.

Browser.Navigate(url,NULL,NULL,NULL,NULL); // navigate to url
}

I get the same value if cancel is set to true or false. If it's false, the IE window spawns to the proper link. Both ways the URL is not returned to my variable, it just appears as all question marks.
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow9-Aug-06 6:51
David Crow9-Aug-06 6:51 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 7:03
Paul Groetzner9-Aug-06 7:03 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow9-Aug-06 7:11
David Crow9-Aug-06 7:11 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 7:26
Paul Groetzner9-Aug-06 7:26 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 7:32
Paul Groetzner9-Aug-06 7:32 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow9-Aug-06 8:20
David Crow9-Aug-06 8:20 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 8:31
Paul Groetzner9-Aug-06 8:31 
QuestionRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow9-Aug-06 8:41
David Crow9-Aug-06 8:41 
AnswerRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 9:04
Paul Groetzner9-Aug-06 9:04 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow9-Aug-06 9:57
David Crow9-Aug-06 9:57 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 10:29
Paul Groetzner9-Aug-06 10:29 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow9-Aug-06 11:16
David Crow9-Aug-06 11:16 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner9-Aug-06 17:57
Paul Groetzner9-Aug-06 17:57 
GeneralRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow10-Aug-06 3:30
David Crow10-Aug-06 3:30 
QuestionRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow10-Aug-06 5:09
David Crow10-Aug-06 5:09 
AnswerRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner10-Aug-06 19:22
Paul Groetzner10-Aug-06 19:22 
AnswerRe: Need help with NewWindow3 and IWebBrowse2 Pin
Paul Groetzner11-Aug-06 9:17
Paul Groetzner11-Aug-06 9:17 

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.