From my test this didn't look work on Windows 10 32 bit while he work fine under windows 7.
Look a great snippet, but sad that don't work on last OS of Windows 10
EDIT: Infact just put a delay in main Thread() when you load DLL did the job and work now on windows 10
I got partial work, by compiling into DLL and using into my project unicode and calling the Function by PeekS and #PB_Ascii.
Even if i would prefer to no use DLL well he work so.
Yeah but it's a crap solution :/ I could even build a EXE and run with parameter though my Program in Unicode... but well very bad.
I don't even need unicode support you know but be able to run this code in Unicode in PureBasic :/ And of course since now #PB_SWITCH is removed i'm ...