Data type conversion problem. HELP [urgent]

  • Thread starter Thread starter Guest
  • Start date Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top