Thank you so much for your reply. I tried t but it still only works with the DEBUG statement.Danilo wrote:Could you try to make 'char* returnStr = "Hello PureBasic!";' static or global?
I think I must clarify - I do get the return value correctly but the function does not run properly. It is a file processig routine that opens a few files to make modifications and then writes to a new file. When the function is called with the DEBUG statement it works perfectly. But when the function is called directly (without the DEBUG statement but the debugger is on) the file is not written correctly.
Plesase see my other post about this: http://www.purebasic.fr/english/viewtop ... 44#p472344
The DEBUG statement must be doing something different.
btw, do you know why VS2013 is shooting this error:
Code: Select all
unresolved external symbol '__imp__findfirst64i32'
unresolved external symbol '__imp__findnext64i32'