D
Dave Griffin
This is a followup to my question in doing unmanaged DLLs in .NET. I
was able to create the DLL and the application was able to see it. So
far so good. Now I need to make that unmanaged DLL read an XML file
which contains a scenario I plan to follow within the library.
Basically this DLL is an interface to a 1553 network with data being
sent and received. By creating an artificial version, I hope to
pretend to send and receive a huge amount of data to stress my
software. But to do this, I need to execute a "scenario" of timed
events. To do that, it seems natural to use the .NET XML processing
code. Trouble is I can't get it to work. I can't even get the Console
writelines to work. Maybe as an unmanaged DLL I can't get to those
functions or maybe I'm just not doing it right.
In this unmanaged DLL, in C++ should I be able to do the following:
#using <mscorlib.dll>
#using <System.Xml.Dll>
using namespace System;
using namespace System::IO;
Console::WriteLine (S"File {0} read sucessfully ...",
args);
was able to create the DLL and the application was able to see it. So
far so good. Now I need to make that unmanaged DLL read an XML file
which contains a scenario I plan to follow within the library.
Basically this DLL is an interface to a 1553 network with data being
sent and received. By creating an artificial version, I hope to
pretend to send and receive a huge amount of data to stress my
software. But to do this, I need to execute a "scenario" of timed
events. To do that, it seems natural to use the .NET XML processing
code. Trouble is I can't get it to work. I can't even get the Console
writelines to work. Maybe as an unmanaged DLL I can't get to those
functions or maybe I'm just not doing it right.
In this unmanaged DLL, in C++ should I be able to do the following:
#using <mscorlib.dll>
#using <System.Xml.Dll>
using namespace System;
using namespace System::IO;
Console::WriteLine (S"File {0} read sucessfully ...",
args);