PB640a1 - WriteStringN with #PB_Unicode

Post bugreports for the Windows version here
fryquez
Enthusiast
Enthusiast
Posts: 392
Joined: Mon Dec 21, 2015 8:12 pm

PB640a1 - WriteStringN with #PB_Unicode

Post by fryquez »

Code: Select all

If CreateFile(0, GetTemporaryDirectory() + "test.txt", #PB_Unicode)
  WriteStringN(0, "Line 1")
  WriteStringN(0, "Line 2")
EndIf
Creates a 1 line text file.

Also for the IDE, there are 2 more API calls that needs to be handled.

PureBasicDebugger\StandaloneDebugger.pb --> GetCurrentDirectory_()
PureBasicIDE\Language.pb --> MultiByteToWideChar_()