is this allowed?
Code: Select all
;PureBasic.dll
ProcedureDLL test()
;do something
EndProcedure
ProcedureDLL call()
;do someehing and call
test()
EndProcedure
Code: Select all
If OpenLibrary(0, "PureBasic.dll")
CallFunction(0, "call")
CloseLibrary(0)
EndIf
It works, but I don't know, if there could be issues, because of
I'm not sure ...Don't write program code outside procedures. The only exception is the declaration of variables or structures.
Thanks!