Is that "url" variable a relative or absolute path?

It sounds like Navigate method tries to navigate to the path below the first url you used.

Jaime

-----Mensaje original-----
De: el Padre [mailto:[EMAIL PROTECTED]
Enviado el: Mi�rcoles, 27 de Octubre de 2004 10:35
Para: c-prog
Asunto: [c-prog] Pblem with WebBrowser control in a MFC application



hi,

I'm working on a VC++ project using MFC and the microsoft webbrowser
control to display pdf documents.

I can display a first pdf without any problems but something strange is
happening when I want to change the "url" to dislpay another pdf.

To load the first pdf:
    CString url = "">     m_browser.Navigate((LPCTSTR)url,NULL,NULL,NULL,NULL);
this works fine.
But when I want to change the pdf I'm reusing the same code and I get an
error telling me that the file indicated by the path (in url) does not
exist.
I get this error even if I use exactly the same path that I used to
display the first pdf.

does someone have an explanation for this weird behavior?

thanks a lot
rapha�l



To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
Yahoo! Groups Links










To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=315388.5529720.6602079.3001176/D=groups/S=:HM/A=2372354/rand=310293509


Yahoo! Groups Links

Reply via email to