W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1999

Re: HTPutDocumentAnchor on Windows

From: Henrik Frystyk Nielsen <frystyk@microsoft.com>
Date: Thu, 4 Nov 1999 12:45:38 -0800
Message-ID: <002301bf2705$90fbbd00$f4f03b9d@redmond.corp.microsoft.com>
To: "Richard Krenek" <rkrenek@ihs.com>, <www-lib@w3.org>
I bet it's the local file name that confused libwww - try and use

    HTLocalToWWW(...)

defined in

    http://www.w3.org/Library/src/HTWWWStr.html

to convert the local file name into a URI before using it in HTParse(...).

Henrik Frystyk Nielsen,
mailto:frystyk@microsoft.com

----- Original Message -----
From: "Richard Krenek" <rkrenek@ihs.com>
To: <www-lib@w3.org>
Sent: Thursday 04 November, 1999 10:34
Subject: HTPutDocumentAnchor on Windows


> Hello All,
>     I'm trying to run the below command which keeps returning 'NO'. It
> works fine on a Unix platform
> but returns 'NO' when on windows.
>
> char * local_filename_to_send = "c:\\temp\\somefile.tif";
> char * full_src_str = HTParse(local_filename_to_send, cwd, PARSE_ALL);
> HTAnchor * src = src = HTAnchor_findAddress(full_src_str);
> HTAnchor_setLength(HTAnchor_parent(src), len);
> BOOL st = HTPutDocumentAnchor(HTAnchor_parent(src), dst, request);
>
> The dst is a valid URI and the file to send is valid. We tried the
> slashes in the file name as \\ and /, neither worked. Has anyone else
> had simular problems or know what I may be doing wrong or need to
> change? Anything would be helpful.
>
> Thanks,
> Richard Krenek
>
Received on Thursday, 4 November 1999 15:46:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:35 GMT