P
paul f
Hi got an unhandled exception when I tried to call the dscDIOInputBit
function contained in a 3rd part dll file,
can you help???
here is the code....
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace dllimport
{
class Program
{
[DllImport("C:\\dscud.dll", EntryPoint = "dscDIOInputBit")]
public static extern byte dscDIOInputBit(short board, byte
port, byte bit, byte digital_value);
static void Main(string[] args)
{
short board = 32767;
byte port =0, bit= 0, digital_value=00;
dscDIOInputBit(board, port, bit, digital_value);
}
}
}
function contained in a 3rd part dll file,
can you help???
here is the code....
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace dllimport
{
class Program
{
[DllImport("C:\\dscud.dll", EntryPoint = "dscDIOInputBit")]
public static extern byte dscDIOInputBit(short board, byte
port, byte bit, byte digital_value);
static void Main(string[] args)
{
short board = 32767;
byte port =0, bit= 0, digital_value=00;
dscDIOInputBit(board, port, bit, digital_value);
}
}
}