<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 6-2-2012 21:07, Sven Barth wrote:
<blockquote cite="mid:4F303302.1000708@googlemail.com" type="cite"><br>
The check you are talking about in C++ is a compile time define
that just switches the defines for e.g. CreateProcess to
CreateProcessW or CreateProcessA (depending on whether UNICODE is
defined or not when including the Windows headers).
<br>
<br>
There is no other "magic" in Windows that changes the imports at
runtime.
<br>
</blockquote>
Nope, but a compiler should choose the<u> optimum</u> for the
platform. Otherwise you can hand-code it.<br>
The A/W versions of the windows API have been in Delphi at least
since D3, but I can check D2 in a minute.<br>
Of course it's a compile time switch! Point made by me in the first
place.<br>
<br>
BTW you can even fool delphi and fpc to behave irratically (do what
I want) by doing things like -uFPC -Mdelphi -dVER200 in fpc or
defining -dVER200 when you have a D7 (VER150) .<br>
Sometimes handy to know the compilers (be it C or FP-C) at least
understand the programmers meaning. <br>
(Just in case you wonder why I would fool the compiler to be over
his age: parsing some badly behaving sourcecode)<br>
</body>
</html>