B
beto
A am receiving an error when attempting to return a float from a C function.
The following is the C code
#define DLL __declspec(dllexport)
DLL float testfloat()
{
return 3.3;
}
The following is the C# code
[DllImport(".\\testfloat.DLL")]
static extern float testfloat();
float temp = testfloat();
Any help is appreciated.
The following is the C code
#define DLL __declspec(dllexport)
DLL float testfloat()
{
return 3.3;
}
The following is the C# code
[DllImport(".\\testfloat.DLL")]
static extern float testfloat();
float temp = testfloat();
Any help is appreciated.