• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1712
  • Last Modified:

Delphi XE2 Does not recognise SysUtils in a DLL

I am tryin gto write a DLL using Delphi XE2.

The uses clause contain
  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.
1 Solution
David KrollCommented:
In XE2, it should be Vcl.Dialogs.  Also System.SysUtils.
HenryM2Author Commented:
Thanks, Vcl.Dialogs works.  I initially tried System.SysUtils but it did not work.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now