Recent

Author Topic: {$Mode DelphiUnicode}  (Read 2492 times)

skiy1337lazarus

  • New Member
  • *
  • Posts: 34
{$Mode DelphiUnicode}
« on: October 01, 2015, 03:06:31 pm »
If you are using the Windows unit, remember API functions must be called explicitly as Unicode:
GetUserNameW

So they all end with 'W'

Because windows.ppu is pre-compiled in ANSI.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11455
  • FPC developer.
Re: {$Mode DelphiUnicode}
« Reply #1 on: October 01, 2015, 03:44:58 pm »
Recompile Windows with "FPC_OS_UNICODE" define, and see.....

 

TinyPortal © 2005-2018