- From: Henrik Frystyk Nielsen <frystyk@microsoft.com>
- Date: Thu, 4 Nov 1999 12:45:38 -0800
- 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 UTC