Windows Control DLL issue with FMX Form

An FMX project compiled in Delphi 10.4 (Sydney) for both Windows 32 and 64 bit has started raising an exception at start up (in TApplication.RealCreateForms).

‘This control requires version 4.70 or greater of COMCTL32.DLL’

I have been compiling and running the program using 10.4 for some time and do not believe I have added any components to the form – just size adjustments which may have been made using Delphi 11.3 (Alexandria). I can still use an old exe compiled with 10.4.

Compiling with 11.3 removes the problem.

When I go to a separate VM with Delphi Berlin and compile the same form code into a separate Berlin project the issue is raised there also. Again not in the saved exe from the last compile.

Any thoughts. I can probably work around the issue but I do not like unexplained things.

You could perhaps watch the executable run with sysinternals procmon, and maybe it would show where it was picking up the comctl32.dll from (and its dependencies) And if they make sense.

Thanks Roger

I have resolved the issue.

I had changed one component control type to platform

ControlType = Platform

While I changed this option using D11.3 and was able to compile and run, my installations of D10.1 and D10.4 raise the DLL issue.

I thought it might be a new option introduced with D11 but not so - the option is available in D10.4 but choosing it causes the runtime failure in Windows applications.