Good Day Friends,
I try to transfer from
GUI application to
Program but get error:
Error: identifier not found "Handle"
Handle is Public Property in parameters of below code:
SHGetFolderPath(Handle, CSIDL_PROFILE, 0, SHGFP_TYPE_CURRENT, usr) = 0
Handle is part of package
LCLBase (lcl\controls.pp).
This is my
uses section:
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes,
{ you can add units after this }
SysUtils, Controls, Graphics, Dialogs, StdCtrls, Interfaces, fileutil,
shlobj;
I made sure to add
LCL to
Required Packages in Project Inspector.
So I can't discover why this works in
GUI application, but not in
Program. Any thought?
Thank you and have nice day