How to have string as a prototype type?
How to have string as a prototype type?
For some reason, prototypes do not work if they are of a string type. However, regular callfunction(fast) works. Have anybody else experience the same?
Code: Select all
Prototype.s ProtoA()
Procedure.s A()
ProcedureReturn "Works!"
EndProcedure
PtrA.ProtoA = @A()
Debug PtrA()
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Answer to using strings in prototypes from DLLs @ http://www.purebasic.fr/english/viewtopic.php?t=23161
Thanks guys.
