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
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.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
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())
In the procedure definition *foo.bar show you that you have to pass a pointer to a structure,idle wrote: Wed Oct 08, 2025 11:51 pm I really don't get the logic behind forbidding it as it makes no difference as far as the compiler goes and make a big difference to users of a lib so they know that they're supposed to pass in the address of their function.
Code: Select all
Global MyFunction.MyPrototype = GetFunction(Library, "FuntionName")
MyFunction(123)