XMLTextWriter, Files and a Class Library
-
Ok so I have a MC++ Class Library and it is being called from a C# app. All hunky dory, except I cannot get the class library to write to any files when it is called from the C# app. I wrote the equivalent code in the C# app and the file was created fine and in the right place. Am I supposed to be doing something extra to tell the system that the class dll can write files? The crappy thing is that no error is generated, in fact stepping through each line the system seems to think the file was created just fine. But no file appears. I am using the XMLTextWriter to write the file. e.g.
myXmlTextWriter = new XmlTextWriter (S"test.xml", System::Text::Encoding::UTF8);
I have used Flush and Close, no luck. So what gives? thanks. regards, Paul Watson Bluegrass Cape Town, South Africa The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge Alison Pentland wrote: I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match! -
Ok so I have a MC++ Class Library and it is being called from a C# app. All hunky dory, except I cannot get the class library to write to any files when it is called from the C# app. I wrote the equivalent code in the C# app and the file was created fine and in the right place. Am I supposed to be doing something extra to tell the system that the class dll can write files? The crappy thing is that no error is generated, in fact stepping through each line the system seems to think the file was created just fine. But no file appears. I am using the XMLTextWriter to write the file. e.g.
myXmlTextWriter = new XmlTextWriter (S"test.xml", System::Text::Encoding::UTF8);
I have used Flush and Close, no luck. So what gives? thanks. regards, Paul Watson Bluegrass Cape Town, South Africa The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge Alison Pentland wrote: I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!Hi Paul, Create an MC++ console test-app and put the same code into it and see if it works from there. It's prolly easier to debug too. Regards, Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]