Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-08

Unicode/wide string const

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Oro06

Hi,
is there a way in fpc to declare hardcoded const directily in widestring ? like this : |MACRO_MY_HARCODED_STRING L"this is an UCS2 coded string"

in other words :

when doing this:

  MY_CONST = 'my const';

MyWin32ApiCall( PWideChar(||MY_CONST));|
|
does the compiler convert to the right type ?

Thanks
Regards
|

Reply by email

Florian Klaempfl
to Oro06
Oro06 wrote 13 lines
Hi, is there a way in fpc to declare hardcoded const directily in widestring ? like this : |MACRO_MY_HARCODED_STRING L"this is an UCS2 coded string" in other words : when doing this: MY_CONST = 'my const'; MyWin32ApiCall( PWideChar(||MY_CONST));| | does the compiler convert to the right type ?

Yes, it should.

Reply by email