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.
HenryM2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David KrollCommented:
In XE2, it should be Vcl.Dialogs.  Also System.SysUtils.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HenryM2Author Commented:
Thanks, Vcl.Dialogs works.  I initially tried System.SysUtils but it did not work.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.