Function Ptr

BlitzMax Forums/BlitzMax Programming/Function Ptr

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I seem to remember there being a way to convert between byte pointer and function pointer both ways. There is another thread somewhere from some time ago where I wrote about it.

Like maybe you have to convert it to an Int Point first..

MyIntPtr=IntPtr(Byte Ptr(MyOtherFunction))

MyOtherFunction=Byte Ptr(MyIntPtr)

or something. There was one combination that worked both ways.