Data type conversions from COM to .Net
IDL Type | .NET Type |
char | System.SByte |
short | System.Int16 |
int, long, HRESULT and SCODE | System.Int32 |
int64 | System.Int64 |
unsigned char | System.Byte |
unsigned short | System.UInt16 |
unsigned int and unsigned long | System.UInt32 |
uint64 | System.UInt64 |
float | System.Single |
double | System.Double |
BSTR, LPSTR and LPWSTR | System.String |
VARIANT_BOOL | System.Boolean |
DATE | System.DateTime |
GUID | System.Guid |
DECIMAL | System.Decimal |
CURRENCY | System.Decimal |
VARIANT | System.Object |
IUnknown* | System.Object |
IDispatch* | System.Object |
void* | System.IntPtr |
IDispatchEx* | System.Runtime.InteropServices.Expando.IExpando |
IEnumVariant* | System.Collections.IEnumerator |
COM | IDL |
boolean and small | char |
wchar_t | unsigned short |
hyper and __int64 | int64 |
[string] char* | LPSTR |
[string] wchar_t* | LPWSTR |
byte | unsigned char |
unsigned hyper and unsigned __int64 | uint64 |
No comments:
Post a Comment