using System.Runtime.InteropServices;
[DllImport("OP930M.DLL")]
private static extern int OP930_GetTemperature(double tempC, int units);
private void btnTempGet_Click(object sender, EventArgs e)
{
double temp = 0.0;
status = OP930_GetTemperature(temp, 1);//errors here
Label1.Text = Convert.ToString(temp);
}
|