Share via


IntPtr to Double

Question

Wednesday, August 20, 2008 2:27 PM

 

How do I get a double or a float from an IntPtr? 

There seems to be functions for all the other data types:

Marshal.ReadByte()
Marshal.ReadInt32()
Marshal.PtrToStringAnsi();

Is there a similar method for doubles/floats?

Thanks in advance.

All replies (1)

Wednesday, August 20, 2008 5:15 PM âś…Answered

See the examples here:
http://msdn.microsoft.com/en-us/library/ms146633.aspx