Help! Blitzmax function as C callback...

BlitzMax Forums/BlitzMax Programming/Help! Blitzmax function as C callback...

bregors(Posted 2005) [#1]
.


Perturbatio(Posted 2005) [#2]
http://www.blitzbasic.com/Community/posts.php?topic=47617&hl=callback


bregors(Posted 2005) [#3]
.


bregors(Posted 2005) [#4]
.


Hummelpups(Posted 2005) [#5]
if you created a module, you can call the function directly.

Whether you have a extern C File without the
module use extern and end extern to init the function from
the .c file and then call it.

Edit: Have a look to the IDE help, please. It is written down there.

IMurDOOM


Dreamora(Posted 2005) [#6]
Your extern - end extern is missing.
You have to define the function within the bmx file or an imported one.

extern
   Function RdZ80:Byte(Addr:Short)
end extern


Things like this are covered in the advaced section of the BM docs.


bregors(Posted 2005) [#7]
.