How to pass a function pointer to a DLL ?

BlitzMax Forums/BlitzMax Programming/How to pass a function pointer to a DLL ?

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.

Not a working example with winmm but it shows that conversion between a function pointer and a byte ptr is easy enough to do.

Local fpointer:Byte Ptr

fpointer = test

Local p() = fpointer
p()

End

Function test()
Print "test"
End Function