[Mono-devel-list] Re: IntPtr and accessing structures

David_Hudson at capgroup.com David_Hudson at capgroup.com
Wed Sep 29 13:00:53 EDT 2004





Sorry it took so long to respond. I was on vacation for awhile.

You would want to do this:

Sdl.SDL_Surface surface =
(Sdl.SDL_Surface)Marshal.PtrToStructure(mySurface, typeof
(Sdl.SDL_Surface));

This will give you an SDL_Surface struct


More information about the Mono-devel-list mailing list