C++ interface question

BlitzMax Forums/BlitzMax Programming/C++ interface question

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.

No you can not pass BM objects out. BM will just crash.
If you need objects within C++ do it vice versa by having the class in C++ and create extern types. Those are never handled by the GC so you don't risk a GC crash which is guaranteed if you try to byte ptr your objects (you would need to clone the object data through memcpy and send that byte ptr to the dll ... extra work that can be avoided by using extern types and C++ construction / deconstruction)