powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Delphi [игнор отключен] [закрыт для гостей] / How to compile an old delphi project (delphi 5) on Delphi 10.3?
53 сообщений из 53, показаны все 3 страниц
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079098
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Доброе утро товарищи,

I need compiling an old delphi project (versión 5.0) on Delphi 10.3 y I'd like asking if there is a guide or something that it can help me to do it.

This project uses both its own and third-party components. One of the own components uses several libraries, for example, Netmasters Fastnet Tools. I understand that this would be impossible to compile on Delphi 10.3.

The .DPK file for one of our components requires the following:

requires
Vcl50,
Vcldb50,
Vclbde50,
A402_R50,
VCLIB50,
RxCtl5,
NMFast50;


The truth is that I don't even know where to start because it seems very complex. What would be the easiest way?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079107
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok,

why is it not suitable to compile on Delphi 5 ?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079108
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
The main objective is to be able to work with Windows 10 because right now I need to have two virtual machines. One with Windows 7 (which uses XpMode) and another with Windows XP where Delphi 5 is installed (with third-party components and libraries whose installables we no longer have). It would be great to be able to work with Delphi 10.3 on Windows 10 without having to rely on virtual machines.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079109
Гаджимурадов Рустам
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok
What would be the easiest way?
You'll get problem with Unicode any way, so better find someone who has experience with Delphi.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079113
Dimitry Sibiryakov
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok
I need compiling an old delphi project (versión 5.0) on Delphi 10.3 y I'd like asking if there is a guide or something that it can help me to do it.

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

I could move my Delphi 6 from XP to Windows 10 as "portable version" and than after many tries I found out how to make this work: "compatibility mode : Windows 98 / Windows ME"
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079120
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Can you give me details of how you went about creating that portable version of delphi 6?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079148
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
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.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
//Copy this folders from Windows XP to Windows 10

C:\Program Files\Borland\Delphi6  --> C:\Delphi6Portable\Delphi6\
C:\Program Files\Common Files\Borland Shared\*.*  --> C:\Delphi6Portable\Borland Shared\
C:\Windows\System32\*.bpl --> C:\Delphi6Portable\System32\
C:\Program Files\Borland\Components\*.* --> C:\Delphi6Portable\Components\
(because I installed components not in default folders, but in C:\Program Files\Borland\Components)


//Export this registry keys as REG - Files:
HKEY_CURRENT_USER\Software\Borland\
HKEY_CURRENT_USER\Software\CnPack\
HKEY_CURRENT_USER\Software\GExperts\
HKEY_CURRENT_USER\Software\ <a lot of other component folders>
HKEY_LOCAL_MACHINE\Software\Borland\
HKEY_LOCAL_MACHINE\Software\CoreLab\
HKEY_LOCAL_MACHINE\Software\Developer Express Inc\

//Replace in exported registry files old Registry- and Files-paths with new paths
C:\\Program Files\\Borland\\Delphi6 with  C:\\Delphi6Portable\\Delphi6\\
C:\\Program Files\\Borland\\Components\\*.* with C:\\Delphi6Portable\\Components\\
etc
HKEY_LOCAL_MACHINE\\Software\\  with  HKEY_LOCAL_MACHINE\\Software\\WOW6432Node\\

//After that import in Windows 10
import REG-Files into registry

//License Key
There are two places in registry on Win XP, where Delphi 6 saves license keys LM / LMKEY / LMLIC :
HKEY_LOCAL_MACHINE\Software\Borland\Delphi\6.0\
and
HKEY_CURRENT_USER\Software\Borland\Delphi\6.0\

on Windows 10 you should drop LM / LMKEY / LMLIC from HKEY_CURRENT_USER\Software\Borland\Delphi\6.0\


//Add to the PATH-Variable:
C:\Delphi6Portable\System32;C:\Delphi6Portable\Delphi6\BIN;C:\Delphi6Portable\Delphi6\Projects;C:\Delphi6Portable\Borland Shared\Debugger;

//Start cmd.exe as Administrator and register libraries:
regsvr32.exe "C:\Delphi6Portable\Borland Shared\Debugger\BORdbk60.dll"
regsvr32.exe "C:\Delphi6Portable\Borland Shared\Debugger\BORdbk61.dll"

//Start Delphi
in properties of Delphi-Icon set compatibility mode "Windows 98 / Windows ME"
may be also "call as administrator"
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079152
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
P.S.
it will be much easier, if you concat multiple REG-files in single REG-file before you begin to edit paths.

file 1.reg
Код: pascal
1.
2.
3.
4.
5.
Windows Registry Editor Version 5.00

...
...
...



file 2.reg
Код: pascal
1.
2.
3.
4.
5.
Windows Registry Editor Version 5.00

...
...
...




if you concat files, you should leave only first "Windows Registry Editor Version 5.00" - String:

Код: pascal
1.
2.
3.
4.
5.
6.
7.
8.
9.
Windows Registry Editor Version 5.00

...
...
...

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

You are on another level. Thank you very much, I am very grateful.

I will try it and post the result.
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079517
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

I have followed all the steps you have indicated, except the following steps:

Note: remember that I have Delphi 5.

1. The file "BORdbk51.dll" does not exist, only the file "BORdbk50.dll" exists. Consequently I have only registered that file.

2. I could not follow the instructions in the "License key" section because I could not find the files, but I've received many messages from Delphi. Is it possible that Delphi 5 stores the license keys in another path in the Windows Registry? Could it be that importing and exporting is enough?

3. I have doubts with the point "HKEY_LOCAL_MACHINE \\ Software \\ with HKEY_LOCAL_MACHINE \\ Software \\ WOW6432Node \\". Should I replace this within the brackets?

Examples:

[HKEY_LOCAL_MACHINE \ SOFTWARE \ WOW6432Node \ Borland \ Delphi \ 5.0 \ AdminInstall]

[HKEY_LOCAL_MACHINE \ SOFTWARE \ WOW6432Node \ Borland \ Delphi \ 5.0 \ UninstInfo]


Resume:

Delphi 5 runs successfully but I get multiple error messages. These messages are to inform that some libraries could not be loaded. (See attached image).

Also, it does not detect the.bpl files that are inside the "/System32/" directory. Consequently I have moved the some .bpl files inside "C:\Delphi5Portable\Delphi5\Bin" (See attached image to know which files I have moved).

Questions:
a. Do you have any idea why I get these error messages?
b. Would you know why the .bpl files that are inside the System32 directory do not recognize me?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079559
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok,


3) WOW6432Node
sorry, I wrote wrong "\\".

you should simple replace every HKEY_LOCAL_MACHINE\Software\ with HKEY_LOCAL_MACHINE\Software\WOW6432Node\

for example

original exported version
Код: pascal
1.
[HKEY_LOCAL_MACHINE\Software\Borland\Delphi\5.0\AdminInstall]



new
Код: pascal
1.
[HKEY_LOCAL_MACHINE\Software\WOW6432Node\Borland\Delphi\5.0\AdminInstall]
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079561
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
P.S.
and it may turn out, that other errors will be automatically eliminated after the correct import of the REG file
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079564
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
P.P.S.
but I wrote correct about double "\\" in file paths

C:\\Program Files\\Borland\\Delphi6 ======> C:\\Delphi6Portable\\Delphi6\\
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079568
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

Can I replace "$(DEBUG)" to the full path in the REG FILE?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079593
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

Also, if I follow your steps exactly, I get an error (see screenshot). To fix this error, I have to move multiple files to "/Bin/" why is this happening?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079618
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok
Also, if I follow your steps exactly, I get an error (see screenshot). To fix this error, I have to move multiple files to "/Bin/" why is this happening?


may be your PATH - Variable had not enougth folders to find these .BPL files
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079621
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelok
Can I replace "$(DEBUG)" to the full path in the REG FILE?


I think "yes", but please don't forget about "\\" if you put folder path in REG file
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079737
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

It seems it's almost working well, but, there's a problem with "JCL" and "JVCL" components.

1. Open Delphi 5.
2. Click in "Project"
3. Click in "Options.."
4. Click in "Package" tab.
5. Looking for "JCL ..." and "JVCL ...", for example, "JCL Debug IDE extension" and "JVCL Custom Control".
6. Click in checkbox of any of them

If I follow those steps I get the next error: (see the screenshot, please).

Would you mind helping me? Please

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

1) what happens if you try "run as administrator". Do you also have this problem with loading of JEDI VCL packages?
2) is this file "c:\delphi5portable\delphi5\Projects\Bpl\JvDBD5D.bpl" realy exists?

and I have one package from all, that I can not activate in IDE: VCLZipD6.bpl . If you find the solution, it help's me too :-)
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079765
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
P.S.
I have one nice tool to manage of installed packages. The same functionality as in IDE, but much more useful: DelphiDistiller 1.21

Now 2 parts of RAR-archive
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079767
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079769
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
(screenshot of older version)
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079819
white_nigger
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...странный у товарисча английский...
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40079830
Мимопроходящий
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
24.06.2021 13:11, white_nigger пишет:
> ...странный у товарисча английский...

да это местное тро-ло-ло.
(сопливое)
Posted via ActualForum NNTP Server 1.5
...
Рейтинг: 0 / 0
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
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085402
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
i7strelok,

I added the same path in the SeachPath of the project which gave me a run-time error, guess what? it no longer gives me that error. Problem solved!! Although now I am getting another error, but I will try to fix it before asking you.


Do you know how to tell delphi to always search in that path so as not to have to configure it in each project?
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085403
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
i7strelokDo you know how to tell delphi to always search in that path so as not to have to configure it in each project?



I think you schould click [File] -> [Close all projects] and than go to [Project] --> [Options]
This will be default settings
...
Рейтинг: 0 / 0
How to compile an old delphi project (delphi 5) on Delphi 10.3?
    #40085441
i7strelok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Кроик Семён,

Thanks for everything, товарищ . What would I do without you?
...
Рейтинг: 0 / 0
53 сообщений из 53, показаны все 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]