Yes, the filename is on order and the FS okay ... as I say, this is fine on
NT/2000, but not on Windows 98.
If it's any help the code is below (the CStrings contain XML which I know is
ASCII-encoded).
- Alex.
----------------snip
CString CSimoneApp::Transform( const CString& xml, const CString& xslt )
{
// make sure the cwd is that of the app
char szPath[_MAX_PATH];
GetModuleFileName( NULL, szPath, _MAX_PATH );
_chdir( PathOf( szPath ) );
char szFnXml[ MAX_PATH ]; // filename of source XML
char szFnXslt[ MAX_PATH ]; // filename of stylesheet
char szOut[ MAX_PATH ]; // filename of result
VERIFY( GetTempFileName( ".", "xml", 0, szFnXml ) );
VERIFY( GetTempFileName( ".", "xsl", 0, szFnXslt ) );
VERIFY( GetTempFileName( ".", "result", 0, szOut ) );
// Save the XML and stylesheet to the temporary files
VERIFY( WriteStringToFile( xml, szFnXml ) );
VERIFY( WriteStringToFile( xslt, szFnXslt ) );
// do the transformation
XalanTransformer xa;
if( xa.transform( szFnXml, szFnXslt, szOut ) )
{
AfxMessageBox( "XSLT transform failed: " + CString(
xa.getLastError() ));
}
// etc.
> -----Original Message-----
> From: Joseph Kesselman/CAM/Lotus [mailto:[EMAIL PROTECTED]]
> Sent: 26 April 2002 17:07
> To: [EMAIL PROTECTED]
> Subject: RE: Windows platform woes?
>
>
>
> Hard to diagnose without seeing a specific example of what
> you're doing,
> but I'd still guess you should start by checking your code to
> make sure the
> filename you're trying to open and write to is correctly
> formatted, that
> the directory exists on a writable filesystem, that the file is not
> read-only...
>