[Done] PB640a1 - WriteStringN with #PB_Unicode

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

[Done] 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_()
Fred
Administrator
Administrator
Posts: 18490
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB640a1 - WriteStringN with #PB_Unicode

Post by Fred »

All fixed, thanks
Post Reply