powered by simpleCommunicator - 2.0.50     © 2025 Programmizd 02
Форумы / Delphi [игнор отключен] [закрыт для гостей] / How to compile an old delphi project (delphi 5) on Delphi 10.3?
25 сообщений из 53, страница 1 из 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
25 сообщений из 53, страница 1 из 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]