T
time_error
Hi,
Environment: VS2005 standard, programming app/service for WinCE 5.0
I'm trying to use the Win32 DeviceIoControl(...) from C# with P/
Invoke.
In my managed C# code the inbuffer of DeviceIoControl is defined as
int[], but the data (type of buffer) I want to use is not. Actullay is
an array of a selv-defined class:
TPhonebook[] myPonebook = new TPhonebook[100];
The error description says: cannot convert from TPhonebook[]' to
'int[]'.
In C++ it is very easy to force a type conversion, but how is this
accomplished in C#?
Regards,
Jonas
Environment: VS2005 standard, programming app/service for WinCE 5.0
I'm trying to use the Win32 DeviceIoControl(...) from C# with P/
Invoke.
In my managed C# code the inbuffer of DeviceIoControl is defined as
int[], but the data (type of buffer) I want to use is not. Actullay is
an array of a selv-defined class:
TPhonebook[] myPonebook = new TPhonebook[100];
The error description says: cannot convert from TPhonebook[]' to
'int[]'.
In C++ it is very easy to force a type conversion, but how is this
accomplished in C#?
Regards,
Jonas