Undocumented Delphi 8 stuff

There are two new undocumented procedure directives in the Delphi 8 compiler. Presumably, these are in preparation for Delphi 9, which is coming at the end of the year, as mentioned here.

These are: winapi and ilcode.

I have yet to discover what these directives do, however, on encountering winapi, the compiler complains that “[Error] filename.dpr(nn):  xxxx must be yyyy”.

So, Dan, since you said “I dunno. I don't really need my hand held all the way from beginning to end.”, how about doing some sleuthing work and find out what “xxxx” and “yyyy” stands for? ;o) And, if you managed to find out, try and figure out the use of winapi and ilcode.

All: I've changed the actual title from [three words] to “stuff” so that Dan can have his fun.

Published Thu, 13 May 2004 @ 7:00 AM by chuacw
Filed under:

Comments

# re: Undocumented Delphi 8 stuff

Thursday, May 13, 2004 11:18 AM by chuacw

Try this: procedure Test;winapi;external 'somedll';

# re: Undocumented Delphi 8 stuff

Thursday, May 13, 2004 11:23 AM by chuacw

It allows a Delphi 8 application to call a function exported by a Win32 DLL. I created a Win32 DLL in Delphi 7, and called functions in that DLL from a console application compiled by Delphi 8.

# re: Undocumented Delphi 8 stuff

Friday, May 14, 2004 7:23 PM by chuacw

Is "winapi" any different than calling a Win32 DLL using PInvoke?

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Enter the following code to ensure that your comment reaches the intended party:
Enter the numbers you see in the image: