Click here to Skip to main content
15,886,720 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Yeah, I'm using VS2005...

Here's a new bit a code that came very close...

void CLoadWebSite::OnNewWindow3Explorer1(LPDISPATCH FAR* ppDisp, BOOL FAR* Cancel, BSTR Flags, BSTR URLContext, BSTR URL)
{
BSTR b = URL;
_bstr_t orig(b);
CString cstring((char *)orig);
AfxMessageBox(_T(cstring));

*Cancel = TRUE;

Browser.Navigate(cstring,NULL,NULL,NULL,NULL);
}

When I debug this code the value for cstring is the URL I need! However, when I try to view it with AfxMessageBox or Navigate to it, it still thinks the value is all question marks.... I don't understand why it could show me one thing and do another... I wish there was a way to post a screenshot....

Any ideas?
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 
QuestionRe: Need help with NewWindow3 and IWebBrowse2 Pin
David Crow11-Aug-06 9:25
David Crow11-Aug-06 9:25 
QuestionCursor clipped via ClipCursor goes away after right click Pin
rajandpayal9-Aug-06 4:58
rajandpayal9-Aug-06 4:58 
AnswerRe: Cursor clipped via ClipCursor goes away after right click Pin
Michael Dunn9-Aug-06 9:36
sitebuilderMichael Dunn9-Aug-06 9:36 
QuestionHeap allocation from SDRAM Pin
Toni789-Aug-06 4:21
Toni789-Aug-06 4:21 
AnswerRe: Heap allocation from SDRAM Pin
toxcct9-Aug-06 4:34
toxcct9-Aug-06 4:34 
GeneralRe: Heap allocation from SDRAM [modified] Pin
9ine9-Aug-06 5:10
9ine9-Aug-06 5:10 
GeneralRe: Heap allocation from SDRAM Pin
toxcct9-Aug-06 5:16
toxcct9-Aug-06 5:16 
GeneralRe: Heap allocation from SDRAM Pin
Toni789-Aug-06 5:12
Toni789-Aug-06 5:12 
GeneralRe: Heap allocation from SDRAM Pin
Rick York9-Aug-06 6:59
mveRick York9-Aug-06 6:59 
GeneralRe: Heap allocation from SDRAM Pin
Zac Howland9-Aug-06 5:26
Zac Howland9-Aug-06 5:26 
GeneralRe: Heap allocation from SDRAM Pin
Toni789-Aug-06 5:42
Toni789-Aug-06 5:42 
AnswerRe: Heap allocation from SDRAM Pin
Viorel.9-Aug-06 5:04
Viorel.9-Aug-06 5:04 
QuestionHow to declare WindowProc function Pin
mmhu9-Aug-06 3:35
mmhu9-Aug-06 3:35 

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.