powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Delphi [игнор отключен] [закрыт для гостей] / How to compile an old delphi project (delphi 5) on Delphi 10.3?
25 сообщений из 53, страница 2 из 3
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079833
s62
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
white_nigger
...странный у товарисча английский...
Наверное испаноязычный, см. скрины сообщений об ошибках. По-моему обычный английский как иностранный. В чатах на англ. не раз видел, как не англоязычные иностранцы пишут с маленькими и большими ошибками (относительно стандартного правильного, как его преподают). Как и русские тоже и я сам (на англ.).
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079842
Гаджимурадов Рустам
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Какой испаноязычный, он русский разумеет
(т.е. в принципе можно ему на русском отвечать).
Posted via ActualForum NNTP Server 1.5
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079845
s62
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Гаджимурадов Рустам
Какой испаноязычный, он русский разумеет
(т.е. в принципе можно ему на русском отвечать).
Google translate переводит и с русского, так что он мог русскую реплику понять, даже если русский не знает.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079886
Фотография kdv
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
да ну нафиг. Начали тут ответы странные разводить.
Перекомпиляция со старых дельфей на новые зависит от
- совместимости библиотек компонент, или вообще их наличия под новые Дельфи.
- юникодности новых версий библиотек
- специфики работы со строками в основном коде, не-юникод в юникод.
Так что, просто перекомпиляция - крайне маловероятно. Даже если получится, может и не заработать.

Могу и на английском:

Ability to recompile old Delphi 5 project with new Delphi (10) depends on:
- compatibility of component libraries used, or ever their existence for new Delphi versions
(some of them may be dead, have a lot of changes, etc)
- are these libraries have unicode support
- main project code compatibility with unicode (working with strings, etc)
So, it is very unlikely just to "recompile" Delphi 5 to Delphi 10, without any code change.
Even if this can happen, result may not work properly.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079890
Мимопроходящий
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
24.06.2021 16:16, kdv пишет:
> - совместимости библиотек компонент, или вообще их наличия под новые Дельфи.

при известном упорстве можно и RXLib на 10.4 перетащить.

зы: был удивлён, что InfoPower всё ещё жив и продаётся (в том числе и под 10.4)
Posted via ActualForum NNTP Server 1.5
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40080071
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
kdv,

Thanks for you answer товарищ kdv (don't think that I'm translating wrong, I know that this word is not used today.).

We even have our own components that use libraries that probably no longer exist. I think it's a stupid decision to migrate this to Delphi 10.4, besides, I'm not an expert.

These own components that I'm talking about are communication components with PLC's, for example, through the serial port or ethenet with PLC's using many protocols, for example, modbus.

Some of these components use, for example, the Netmasters Fastnet Tools library. Fastnet is no longer available, what's more, I read some forums where its use was discouraged (2003 forums).
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40080072
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

This was one of the steps that he had made wrong. Thanks.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40080075
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

1. I always run the program with "as administrator".
2. All files exist.

Well, I found the solution, I executed the next .bat files:

Код: pascal
1.
2.
3.
4.
C:\Delphi5Portable\Delphi5\Jedi\jcl\clean.bat
C:\Delphi5Portable\Delphi5\Jedi\jcl\install.bat
C:\Delphi5Portable\Delphi5\Jedi\jvcl\clean.bat
C:\Delphi5Portable\Delphi5\Jedi\jvcl\install.bat



All the files have been recompiled and now everything works correctly.

Спасибо большое товарищ Кроик Семён
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40080108
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok,

I'm glad that it works.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085051
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Dear Кроик Семён,

The projects compile perfectly in this portable version of Delphi 5, however, when executing it I receive this error (see the screenshot).

Can you give me an idea how to fix this? I imagine this is a delphi 5 update, where new properties were added to the components, but I don't understand why that "update" did not "move" correctly from Windows XP to Windows 10.

The error says "Error reading .. Property does not exist".
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085058
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok,

1) you can remove the property "AutoStopAction" directly from DFM file (where you defined IBTransactionDataBase_Datos) and than recompile the project.

2) other possibility would be to open the Unit in Delphi IDE. The IDE detect all missing properties and ask you what to do with it.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085065
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
P.S.
why portable version of components has older (or other) version as on Windows XP? May be compiled version (DCUs) of this component library on XP had differences from source of it (PAS).
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085072
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

Here I have more information:

1- If I open the form, select the component and go to the properties, it can be seen that the delphi 5 portable version (windows 10) shows me all the options of that property (it seems that it is correctly installed).

2- If I show the form as text and delete all those lines (in which that property is used), when compiling and executing the error continues to be.

3- I have read this link and it says that the solution is to reinstall delhpi 5. Now I am thinking, is Delphi 5 compatible with Windows 10? I don't understand why I made a portable version, maybe I could have installed everything from scratch. https://www.tek-tips.com/viewthread.cfm?qid=620454]
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085080
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok,

sorry I have no idea. May be other members of SQL.RU can help you.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085090
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok,

create new project with two components: connection and transaction (simple copy-paste IBTransactionDataBase_Datos and connection) and than compile + run. Have you exceptions?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085106
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

I did what you told me to do, the error keeps coming up.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085152
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok,

I have some crazzy idea: may be you have more then one unit in C:\Delphi5Portable\..., where this component has been declared.

P.S. another questions:
- if you run the compiled application from Windows (not from IDE), do you get the same exception as from IDE?
- try to switch to Debug-DCUs and recomple the project (or back if you already has it and recompile) and run
- is the project compiled to use runtime-packages (you find it in the project-settings) or not?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085279
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

I didn't understand the first thing you told me. Duplicate units?

- If I run the .EXE file directly, I get the same error.
- If I enable the "Use DEBUG DCUs" option (located in Project-> Options -> Compiler), then compile and run from Delphi IDE and from .EXE, I keep getting the same error.
- I wouldn't be surprised if it was done that way, but I don't know. The base we use for the projects is prior to the year 2000, I don't know what code is behind it, is there a way to check that?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085325
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok
I didn't understand the first thing you told me. Duplicate units?


I think you have 2 versions of IB component library. One part of DCUs go together with in IDE installed packages, another part will be compiled with project (USES).

May be you should recompile the IB component library (DPKs)
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085348
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
P.S.

create new project with only one Button on it and detect the IBX - Version from code

Код: pascal
1.
2.
3.
4.
5.
6.
uses IBXConst;

procedure TForm1.Button1Click(Sender: TObject);
begin
   ShowMessage(FloatToStr(IBX_Version));
end;




Is this the same version as in IDE?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085361
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

Код: pascal
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, IBXConst,
  StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
begin
   ShowMessage(FloatToStr(IBX_Version));
end;

end.



Errors:
[Error] Unit1.pas(28): Undeclared identifier: 'IBX_Version'
[Fatal Error] Project2.dpr(5): Could not compile used unit 'Unit1.pas'
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085374
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok,

OK but you can find out the correct name of a unit, if your search "IBX_Version" in all PAS files.
I tested it on Delphi 6
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085382
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

I tried to search "IBX_Version" on "C:\Delphi5Portable" and it didn't found. I used the "windows finder".

I also tried to install later versions, since, I found these files:
- IBXDP452Upd.EXE
- IBXDP502Upd.EXE
- IBXDP504Upd.EXE
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085395
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

Ok, I used "refind.exe" for find this file, haha.

The file is in the following path: C:\Delphi5Portable\Delphi5\Source\Vcl\IBXConst.pas

If I open the file, I see this version: IBX_Version = 5.04;

Is something misconfigured in the Windows regedit or in the PATH and for that reason it doesn't detect the IBX components?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085400
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
i7strelok,

I have added the path that I mentioned earlier in "Projects-> Options-> Directories-> Search Path" in the project that you have asked me to create (the project that has only one button) and it has compiled me perfectly.

Is there a way to avoid having to do this?
...
Рейтинг: 0 / 0
25 сообщений из 53, страница 2 из 3
Форумы / Delphi [игнор отключен] [закрыт для гостей] / How to compile an old delphi project (delphi 5) on Delphi 10.3?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]