Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 4th, 2003, 03:41 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CHtmlView or CHtmlCtrl file:// protocol problems

Hi everyone, this is my first post so please excuse anything I may do wrong! I have a problem when trying to load local files via the file:/// protocol within CHtmlView or CHtmlCtrl classes. I have an application with a docking window with a one of these views or controls inside into which I write a stream of HTML. If the HTML included <a href> links to web based URLS (eg "http://www.wrox.com") the link will work and popup but if the link is to a local file (eg "file:///c:/test.html") the links shows but clicking on it doesn't move the page to the link. Has anyone any experience of this?

Best wishes,

Paul
 
Old September 12th, 2003, 12:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

I'm not sure that the problem is due to the link
pointing to a file. The link works as long as
it is pointing to something.
Now because you are not using an html doc to test
this thing it could be that the stream of HTML you
are generating has some problem.

Try your app using some html file with a link
to a local file and you would find that the thing
works
 
Old November 11th, 2003, 08:08 PM
Registered User
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm having exactly the same problem. I've tried everything. I can cut and paste the same text into IE and it'll work fine. If I change it to a www webpage address it works fine.

Did you find a solution?







Similar Threads
Thread Thread Starter Forum Replies Last Post
Protocol used for sending a request. m_soni21 Classic ASP Professional 2 December 1st, 2006 11:41 AM
file protocol and non-IE browsers nemo-x HTML Code Clinic 1 July 19th, 2004 07:50 AM
WebService - SOAP Protocol ksams .NET Web Services 1 January 29th, 2004 04:37 PM
Get Html Source from CHtmlView Class rashvi Visual C++ 0 June 18th, 2003 08:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.