G
Guest
I am trying to use a DLL in my C# application.
The code that I have is:
..
..
..
[DllImport("atfuncs.dll")]
public static extern int AT_Device_Get_Status(int DeviceNumber);
..
..
..
serial = AT_Device_Get_Status(1);
It is at this point in the code that the following message appears on the
screnn:
Microsoft Development Environment
! An unhandled exception of type 'System.NullReferenceException' occurred in
Vaprel.exe
Additional information: Object reference not set to an instance of an object.
I don't know what I am doing wrong. I hope that someone in this group can
tell me what is wrong with my application.
John Vogel (lost in C# land)
The code that I have is:
..
..
..
[DllImport("atfuncs.dll")]
public static extern int AT_Device_Get_Status(int DeviceNumber);
..
..
..
serial = AT_Device_Get_Status(1);
It is at this point in the code that the following message appears on the
screnn:
Microsoft Development Environment
! An unhandled exception of type 'System.NullReferenceException' occurred in
Vaprel.exe
Additional information: Object reference not set to an instance of an object.
I don't know what I am doing wrong. I hope that someone in this group can
tell me what is wrong with my application.
John Vogel (lost in C# land)