TIP: Click on subject to list as thread! ANSI
echo: delphi
to: STEVE BATSON
from: FRANK MALCOLM
date: 1996-05-26 09:14:00
subject: Delphi Bug

Hi, Steve.
[...]
SB> Now for the bug/problem or whatever you wish to call it. Delphi has a
SB> FindClose in the Object Pascal library. The Windows API has a FindClose 
n
SB> it which Delphi has included in the WINDOWS unit added to your projects 
y
SB> default. The problem I observed was that my code made a call to the API 
cal
SB> when I needed it to call the pascal function. This caused it to fail a
SB> syntax check because the API call requires a handle as input and returns 

SB> boolean value. The pascal function requires an input of type TSearchRec. 

SB> had to explicitly call the pascal function from the unit in order to 
correc
SB> the problem in my program, no big deal there.
I had the opposite problem with ClientToScreen. I needed to call the API
version, kept getting a type mismatch - forgot that there was a method
of the same name in, I think, TForm. Just had to change it to
WinProcs.ClientToScreen(...
Regards, fIM.
 * * Elephant : a mouse built to government specs.
---
---------------
* Origin: Pedants Inc. (3:711/934.24)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.