Page 1 of 1

[Done] PB640a1 - WriteStringN with #PB_Unicode

Posted: Sat Jan 24, 2026 3:32 pm
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_()

Re: PB640a1 - WriteStringN with #PB_Unicode

Posted: Mon Jan 26, 2026 4:28 pm
by Fred
All fixed, thanks