Link to home
Start Free TrialLog in
Avatar of HenryM2
HenryM2

asked on

Delphi XE2 Does not recognise SysUtils in a DLL

I am tryin gto write a DLL using Delphi XE2.

The uses clause contain
uses
  SysUtils, Classes, Dialogs;

The Dialogs statement is not recognised by Delphi.  Moving the mouse over Dialogs, generates a hint "Cannot resolve unit name 'Dialogs'.

On compiling the following Error is generated.
[dcc32 Fatal Error] SIDDLLLib.dpr(14): F1026 File not found: 'C:\Site Designer IV\DLLLib\Dialogs.dcu'

Adding FMX.Dialogs  gets a perfect compile but calling the DLL from my main program, generates the Error:
Access violation at address 01974FA7 in module 'MyTestDLL.dll'.  Write of address 00000000.

Can anyone direct me in the right direction, please.
ASKER CERTIFIED SOLUTION
Avatar of David Kroll
David Kroll
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HenryM2
HenryM2

ASKER

Thanks, Vcl.Dialogs works.  I initially tried System.SysUtils but it did not work.