Page 1 of 1
Declare doesn't match with real procedure
Posted: Mon Oct 06, 2025 3:22 pm
by acreis
Good Day,
I don't know where is my error:
Code: Select all
Prototype proto_void()
Declare MyFun(sString$, *ptrFunction.proto_void)
Procedure MyFun(sString$, *ptrFunction.proto_void) ;Declare doesn't match with real procedure
EndProcedure
Re: Declare doesn't match with real procedure
Posted: Mon Oct 06, 2025 3:25 pm
by STARGĂ…TE
acreis wrote: Mon Oct 06, 2025 3:22 pm
Good Day,
I don't know where is my error:
Code: Select all
Prototype proto_void()
Declare MyFun(sString$, *ptrFunction.proto_void)
Procedure MyFun(sString$, *ptrFunction.proto_void) ;Declare doesn't match with real procedure
EndProcedure
Do not use a pointer. Prototypes are defined without pointer * character.
Code: Select all
Prototype proto_void(sString$)
Declare MyFun(sString$, ptrFunction.proto_void)
Procedure MyFun(sString$, ptrFunction.proto_void) ;Declare doesn't match with real procedure
ptrFunction(sString$)
EndProcedure
Procedure void(sString$)
Debug sString$
EndProcedure
MyFun("Hello", @void())
Re: Declare doesn't match with real procedure
Posted: Mon Oct 06, 2025 4:53 pm
by acreis
Thank you very much!