Doc. # 1-0000201
Date Updated 07-27-2005 Date Created 07-27-2000
Document Type Knowledge Base Related OS
Related Product 32-bit DLL Drivers
Why the Delphi example AO.INT of 32-bit DLL drivers has compile errors in Delphi 3.0/4.0?
Solution:
Delphi 4.0 seems to have stricter parameter data type examination. We found the program will work after the modification as follows: In Procedure TfrmInit.butChangDevClick(Sender: TObject); Original ---> {Select devcie from device list} lErrCde := DRV_SelectDevice( frmInit.Handle, 0, lDeviceNumber, szDeviceName[0]); Modify to ---> {Select devcie from device list} lErrCde := DRV_SelectDevice( frmInit.Handle, False, lDeviceNumber, @szDeviceName[0]); In Procedure TfrmConverting.FormClose(Sender: TObject; var Action: TCloseAction); Original ---> var i : integer; Modify to ---> var i : Longword;