So you are doing something wrong
I suspect you forgot to tell PureBasic in the compileroptions which subsystem it should use i.e.
Testcode :
Code: Select all
Debug TestFunc()
Debug returns : 1
PS : and it returns 0 in normal mode (no subsystem used)
Moderators: gnozal, ABBKlaus, lexvictory
Code: Select all
Debug TestFunc()