There is a DLL written in delphi. DLL consists of:
- Main forms to which TMainMenu and TImageList are attached.
InteractEx ββfunctions through which the form is created.
var MainForm: TMainForm; begin // Π‘ΠΎΠ·Π΄Π°Π΄ΠΈΠΌ Π³Π»Π°Π²Π½ΠΎΠ΅ ΠΎΠΊΠ½ΠΎ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ. Application.CreateHandle; // ΠΠ½ΠΈΡΠΈΠ°Π»ΠΈΠ·ΠΈΡΡΠ΅ΠΌ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅. Application.CreateForm(TMainForm, MainForm); Application.Initialize; try // ΠΠ°ΡΠΈΠ½Π°Π΅ΠΌ ΡΠ°Π±ΠΎΡΡ Π² ΠΈΠ½ΡΠ΅ΡΠ°ΠΊΡΠΈΠ²Π½ΠΎΠΌ ΡΠ΅ΠΆΠΈΠΌΠ΅. Application.Run; Application.RemoveComponent( MainForm ); finally MainForm.Release; end;
The situation is this - if TMainMenu.Images is assigned to TImageList, when loading the dll from the application, different behavior is obtained, depending on the language in which the application is written. More precisely, the appearance of TMenuItem is changing.
Application loading dll is written in Delphi:
The application loading dll is written in C ++:
The same DLL is loaded. Wednesday Embarcadero RAD studio xe5.

