Blitzmax is excellent to program with!

BlitzMax Forums/BlitzMax Programming/Blitzmax is excellent to program with!

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.

@skn3[ac]
Your example for the function pointers: Three questions: One, in the line Local Current_Tool() is this a function prototype of a non existant function? Two, how would you pass this to, say, the OS (like for a callback) since this is not a 'traditional' variable? And three, I could not find any examples of function pointers in the manual either under 'functions' or 'pointers', so how did you find out about them and how to use them?


You can use a byte ptr.
byte ptr(yourfunctionhere)


...and if you want windows to call it, define your function like this...
function yourfunctionhere()"win32"
end function