[fpc-devel] Unicode/wide string const

Florian Klaempfl florian at freepascal.org
Wed Aug 24 11:48:40 CEST 2005


Oro06 wrote:

> 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.




More information about the fpc-devel mailing list