Returning allocated structure from C

BlitzMax Forums/BlitzMax Programming/Returning allocated structure from C

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.

To use external C Structs, don't forget that a memory allocated in C is a Byte Ptr, it is not an Int. so assigning Byte Ptr to int will in most cases just be completely wrong.

(this is only possible with BM own objects which have a handlefromobject and objectfromhandle functionality)