[fpc-pascal]Integer type?

James_Wilson at i2.com James_Wilson at i2.com
Tue Jul 30 18:16:54 CEST 2002

I'm trying to use a Win32 API function, which is being called like this:

  BytesAvail : int64;
  BytesTotal : int64;
  BytesFree : int64;
  RootDir : array [1..4] of char;

GetDiskFreeSpaceEx (@RootDir,BytesAvail,BytesTotal, at BytesFree);

But when I compile I get this error:

Incompatible type for arg no. 3: Got INT64, expected LARGE_INTEGER

I've checked the .pdf files for the definition of LARGE_INTEGER, but I'm 
unable to locate that. The Win32 API Reference lists both the 2nd and 3rd 
args as PULARGE_INTEGER, so it seems a bit odd that the 2nd arg is being 
classified as okay while the 3rd isn't (unless the expression is being 
evaluated right to left, in which case the 2nd arg isn't checked yet and I 
just lied  :-). I tried using -Sd too, but that didn't help either.

Obviously I'm doing something wrong here, but what is it?

BTW; -i tells me the following:
Free Pascal Compiler version 1.0.6
Compiler Date  : 2002/04/23
Compiler Target: i386


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20020730/bc0bcde1/attachment.html>

More information about the fpc-pascal mailing list