The help files say right click on the target platform in the project manager and select "Add platform", but when I do this the "Add Platform" item is greyed out.
Is there another way to add the 64 bit platform?
The help files say right click on the target platform in the project manager and select "Add platform", but when I do this the "Add Platform" item is greyed out.
Is there another way to add the 64 bit platform?
This could happen when migrating projects from previous versions of Delphi.
Try deleting the dproj file and then open the dpr file. This way usually handles the upgrade process.
If it does not, you will probably need to create a new project and add your existing source files to it.
Or you can try editing the dproj file to enable the Win64 platform.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
...
<TargetedPlatforms>3</TargetedPlatforms>
...
</PropertyGroup>
...
<PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Base)'=='true') or '$(Base_Win64)'!=''">
<Base_Win64>true</Base_Win64>
<CfgParent>Base</CfgParent>
<Base>true</Base>
</PropertyGroup>
...
<ProjectExtensions>
<Borland.Personality>Delphi.Personality.12</Borland.Personality>
...
<BorlandProject>
...
<Platforms>
<Platform value="Win32">True</Platform>
<Platform value="Win64">True</Platform>
</Platforms>
...
</BorlandProject>
...
</ProjectExtensions>
...
</Project>
<Platforms>
element: <Platform value="Win64">True</Platform>
–
Mok <ProopertyGroup>
element you mention is not the way that happens, the <Platform>
element is. The <PropertyGroup>
is merely how the platform's configuration settings are managed. –
Mok © 2022 - 2024 — McMap. All rights reserved.