CALLBACK

Previous topic - Next topic

MrTAToad

I'm trying to get CALLBACK to work (haven't used it really before), but at the moment I keep getting

C:\Users\Nicholas\AppData\Local\Temp\glbasic\gpc_temp.h:223: error: new declaration `DGNat __GLBASIC__::loadSaveOtherOptions(DGNat, __GLBASIC__::tOptionsData&)'
C:\Users\Nicholas\AppData\Local\Temp\glbasic\gpc_temp.h:85: error: ambiguates old declaration `DGInt __GLBASIC__::loadSaveOtherOptions(DGNat, __GLBASIC__::tOptionsData&)'

Which is fair enough normally.

However, my functions are defined as :

Code (glbasic) Select
FUNCTION loadSaveOtherOptions%:doLoadData%,options AS tOptionsData
and
Code (glbasic) Select
CALLBACK FUNCTION loadSaveOtherOptions:doLoad%,options AS tOptionsData

They are in different files too...

Moru

Remove the % sign in the declaration of the function.

MrTAToad

Yes - just noticed the return symbols are different