G
Guest
Hi gurus,
I'm having data conversion (marshalling) problems with VB.NET DLL calling a old C DLL. The problem is that when the return type is a Long, I'm getting some garbage large number. eg. 921312343243543 or -3123904538
I've tried both Declare and DllImport but getting the same error. I've tried MarshalAs(UnmanagedType.U8) but no help. Convert.UInt64 doesn't do it either.
This is really odd as return type of int and boolean seems to work just fine. And I can even pass in a Long data type.
I can't dive into the old C code, but it is know to be working from Lotus Notes.
Any help is appreciated!
Hui
I'm having data conversion (marshalling) problems with VB.NET DLL calling a old C DLL. The problem is that when the return type is a Long, I'm getting some garbage large number. eg. 921312343243543 or -3123904538
I've tried both Declare and DllImport but getting the same error. I've tried MarshalAs(UnmanagedType.U8) but no help. Convert.UInt64 doesn't do it either.
This is really odd as return type of int and boolean seems to work just fine. And I can even pass in a Long data type.
I can't dive into the old C code, but it is know to be working from Lotus Notes.
Any help is appreciated!
Hui