D
Dave Griffin
I have what I think is an "unmanaged DLL" that I access from within C#
using the construction:
[DllImport("sbslib32.dll")]
public static extern ushort sbs_init_device(ushort DevNum,
ushort queue_length, ushort bsm_length,
SBS1553Classes.SBS_FIRMWARE_SOURCE firmware_source);
There are no object oriented constructions here and the code is
actually C (not C++). I would like to create a "phony" version of this
DLL for use on our desktop machines (where the hardware this DLL uses
is not present) but I don't know how to do it in .NET or if it's even
possible. I would like to install it on the desktop and then use my
own implementation (my phony DLL) to pretend to feed data to my
program in order to construct non-trivial tests of throughput.
Is there a way to do this, and if so, can you point me to an example?
Thanks.
using the construction:
[DllImport("sbslib32.dll")]
public static extern ushort sbs_init_device(ushort DevNum,
ushort queue_length, ushort bsm_length,
SBS1553Classes.SBS_FIRMWARE_SOURCE firmware_source);
There are no object oriented constructions here and the code is
actually C (not C++). I would like to create a "phony" version of this
DLL for use on our desktop machines (where the hardware this DLL uses
is not present) but I don't know how to do it in .NET or if it's even
possible. I would like to install it on the desktop and then use my
own implementation (my phony DLL) to pretend to feed data to my
program in order to construct non-trivial tests of throughput.
Is there a way to do this, and if so, can you point me to an example?
Thanks.