GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2010-Mar-02

Title: CALLBACK
Post by: MrTAToad on 2010-Mar-02
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...
Title: Re: CALLBACK
Post by: Moru on 2010-Mar-02
Remove the % sign in the declaration of the function.
Title: Re: CALLBACK
Post by: MrTAToad on 2010-Mar-02
Yes - just noticed the return symbols are different