S
Sagaert Johan
System.NotSupportedException
In short:
i am calling functions from a CF application that reside in a DLL created
with eVC4
through interop services i use these in my CF app.
When i call the function Locators4(double a) i get an
System.NotSupportedException.
All other functions work, except this one (where i pass a double)
Any idea about this problem or is this a CF limitation ?
in my eVC4 DLL i have these declared functions:
extern "C" __declspec(dllexport) int fnLocators(void);
extern "C" __declspec(dllexport) int fnLocators2(int a);
extern "C" __declspec(dllexport) int fnLocators3(double * a,double * b);
extern "C" __declspec(dllexport) int fnLocators4(double a);
in my C# CF app i have declared these in a class :
public class myclass
{
[DllImport(@"\windows\locators.dll", EntryPoint="fnLocators")]
public static extern int Locators();
[DllImport(@"\windows\locators.dll", EntryPoint="fnLocators2")]
public static extern int Locators2(int a);
[DllImport(@"\windows\locators.dll", EntryPoint="fnLocators3",
CharSet=CharSet.Auto)]
public static extern int Locators3(ref double a,ref double b);
[DllImport(@"\windows\locators.dll", EntryPoint="fnLocators4",
CharSet=CharSet.Auto)]
public static extern int Locators4(double a);
}
In short:
i am calling functions from a CF application that reside in a DLL created
with eVC4
through interop services i use these in my CF app.
When i call the function Locators4(double a) i get an
System.NotSupportedException.
All other functions work, except this one (where i pass a double)
Any idea about this problem or is this a CF limitation ?
in my eVC4 DLL i have these declared functions:
extern "C" __declspec(dllexport) int fnLocators(void);
extern "C" __declspec(dllexport) int fnLocators2(int a);
extern "C" __declspec(dllexport) int fnLocators3(double * a,double * b);
extern "C" __declspec(dllexport) int fnLocators4(double a);
in my C# CF app i have declared these in a class :
public class myclass
{
[DllImport(@"\windows\locators.dll", EntryPoint="fnLocators")]
public static extern int Locators();
[DllImport(@"\windows\locators.dll", EntryPoint="fnLocators2")]
public static extern int Locators2(int a);
[DllImport(@"\windows\locators.dll", EntryPoint="fnLocators3",
CharSet=CharSet.Auto)]
public static extern int Locators3(ref double a,ref double b);
[DllImport(@"\windows\locators.dll", EntryPoint="fnLocators4",
CharSet=CharSet.Auto)]
public static extern int Locators4(double a);
}