K
Kristijan Marin
Hi,
If I try to import a method that has 'double' as a return values or as
a parameter then when trying to call that method I get UnSupportedException.
NO matter if the DLL I specified exists or not. So as seen from the example
below,
if this "krispi.dll" exists or not i always get this exception. I also get
this exception is DLL file exists.
If changing double to int and DLL exists then MissingMethodException is
throwen which is correct.
Do I have to use UnsuportedTyle.R8 insted of double ??? Just guessing.
Here an example:
[DllImport("krispi.dll")]
static extern double M1( double dDeg );
public unsafe int MyMethod (
try{
double d=0;
d = M1(0);
}catch(Exception exc){
exc -> UnSupportedException
}
If I try to import a method that has 'double' as a return values or as
a parameter then when trying to call that method I get UnSupportedException.
NO matter if the DLL I specified exists or not. So as seen from the example
below,
if this "krispi.dll" exists or not i always get this exception. I also get
this exception is DLL file exists.
If changing double to int and DLL exists then MissingMethodException is
throwen which is correct.
Do I have to use UnsuportedTyle.R8 insted of double ??? Just guessing.
Here an example:
[DllImport("krispi.dll")]
static extern double M1( double dDeg );
public unsafe int MyMethod (
try{
double d=0;
d = M1(0);
}catch(Exception exc){
exc -> UnSupportedException
}