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

Adding Compatibility Unity Scopes for Delphi XE2

Hi,

Some third party source code has "Registry" in it's uses clause.
Compiling the project gives an compiler error:
[DCC Fatal Error] ThirdPartyUnit.pas(386): F1026 File not found: 'Registry.dcu'
Of course I could add prefix "System.Win," but I don't want to change third party sources.

Then I read the following articles to add Compatibility Unity Scopes.
http://docwiki.embarcadero.com/RADStudio/XE4/en/Unit_Scope_Names
http://docwiki.embarcadero.com/RADStudio/XE4/en/Adding_Unit_Scope_Names_for_Your_Own_Components

In the Windows registry I added following keys, but this doesn't do the trick.

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Embarcadero\BDS\9.0\Library\Win32\CompatibilityUnitScopes]
"XE2"="Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell"

[HKEY_CURRENT_USER\Software\Embarcadero\BDS\9.0\Library\Win64\CompatibilityUnitScopes]
"XE2"="Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell"

Open in new window

Any suggestions on how to get this working wthiout having to change to third party sources?
Please keep in mind I'm using Delphi XE2 with update 4.
0
Stef Merlijn
Asked:
Stef Merlijn
1 Solution
 
Sinisa VukCommented:
Very similar/recent question was here on EE
Try use info in comment .....
0
 
Stef MerlijnDeveloperAuthor Commented:
Perfect, thank you very much.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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