Did you read the FAQ? Most particularly, did you apply the Dinkumware
patches to the Microsoft library? Are you linking with the correct C++
run-time library? You must link with the Multithreaded DLL run-time
libraries.
If everythin above checks out, then you should post more information about
the exception you're getting and the call stack when the exception occurs.
Dave
David Proksch
<david.proksch@a To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
v.com> cc: (bcc: David N
Bertoni/CAM/Lotus)
Subject: Newbie Xalan C++ Question
08/15/2001 11:50
PM
Please respond
to xalan-dev
Greetings,
I'm using Xalan C++ on Win2K (not my choice!), with the latest Microsoft
patches for both VC6.0 (Standard Edition, SP5) and Operation System(SP2).
When I use the commandline XalanTransform, it works nicely. When I rebuild
it, it works nicely. When I take the guts of it and place it into another
C++ program (basically, cut and paste), I get an exception called every
time
XalanTransformer theXalanTransformer; is issued. The program
compiles/links
with zero errors and warnings.
Any pearls of wisdom that can be sent my way on how to move past this
problem? More than likely, it is operator error, but I am having an issue
seeing the forrest for the trees.
I've included the snippet of code at the end.
Thanks in advance for your assistance!
Dave
--> begin include <--
XMLPlatformUtils::Initialize();
XalanTransformer::initialize();
XalanTransformer theXalanTransformer;
const char* xmlIn = "c:/temp/foo.xml";
const char* xslSheet = "c:/temp/foo.xsl";
const char* xmlOut = "c:/temp/foo.out";
int theResult = 0;
theResult =
theXalanTransformer.transform(xmlIn,xslSheet,xmlOut);
XalanTransformer::terminate();
XMLPlatformUtils::Terminate();
--> end include <--