<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
is there a way in fpc to declare hardcoded const directily in
widestring ?<br>
like this : <code>MACRO_MY_HARCODED_STRING L"this is an
UCS2 coded string"<br>
<br>
in other words :<br>
<br>
when doing this:<br>
<br>
MY_CONST = 'my const';<br>
<br>
MyWin32ApiCall( PWideChar(</code><code>MY_CONST));</code><br>
<code><br>
does the compiler convert to the right type ?<br>
<br>
Thanks<br>
Regards<br>
</code>
</body>
</html>