TIP: Click on subject to list as thread! ANSI
echo: delphi
to: STUART FOX
from: STEVE BATSON
date: 1996-06-16 16:29:00
subject: using functions/procedures from diff cod16:29:4506/16/96

sf> Also, another question.. :)  In the fmxutils.pas file (that comes 
sf> with delphi 1.0), everything works under Win 3.1, but as soon as I 
sf> compile it under NT, it doesn't like the
sf>    DeleteFile(FileName);
sf> in the MoveFile() procedure; it complains that it is a PChar type and 
sf> not a string - funny thing is though, even if I declare it as a 
sf> String it still doesn't like it - the DeleteFile()'s parameter is of 
sf> string type (according to the online help).
sf> Any ideas on this one? :)
Make sure that the DeleteFile routine is not also an API routine. If so, you 
may need to move the fmxutils unit before the Windows API unit or call it 
explicitly (i.e. fmxutils.DeleteFile(FileName) ) 
If that isn't the problem, don't know what is of the type of my head. 
Steve
--- FreeMail 1.07b
(1:203/21)
---------------
* Origin: The Visual Programmer's Workshop - N.H., Ca (916)338-3230 *

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™.