- Posts: 4
- Thank you received: 0
×
CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems
Question Converting Delphi source code to Typhon
- Bernie Z
- Topic Author
- Offline
- New Member
-
Less
More
10 months 2 weeks ago #16063
by Bernie Z
Converting Delphi source code to Typhon was created by Bernie Z
Hello all, I am quite new to both Delphi (v4--I believe) and Typhon (v7.4). I have the source for an old Delphi program,
trying to compile using Typhon has some issues. Cannot resolve Delphi items such as Variants, TWebBrowser, IStream, IPersistStreamInit ....etc.... I have tried installing Typhon packages, no luck.
1) Are there packages from other sources available?
2) Is there any documentation, apart from the list of components, which provide some idea as to how to use the components.
Thanks for your responses.
trying to compile using Typhon has some issues. Cannot resolve Delphi items such as Variants, TWebBrowser, IStream, IPersistStreamInit ....etc.... I have tried installing Typhon packages, no luck.
1) Are there packages from other sources available?
2) Is there any documentation, apart from the list of components, which provide some idea as to how to use the components.
Thanks for your responses.
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
10 months 2 weeks ago - 10 months 2 weeks ago #16064
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic Converting Delphi source code to Typhon
Thanks Sir
First of all the compatibility of CodeTyphon with Delphi are NOT so good.
Many Delphi components and libraries are NOT exists to CT.
In some cases, only the word "Pascal" it's the same...
Second, Typhon has a Delphi2CT converter.
This tool will TRY to convert your code to Typhon IDE.
My suggestion is to start with this tool.
In any case, we are here to help you.
First of all the compatibility of CodeTyphon with Delphi are NOT so good.
Many Delphi components and libraries are NOT exists to CT.
In some cases, only the word "Pascal" it's the same...
Second, Typhon has a Delphi2CT converter.
This tool will TRY to convert your code to Typhon IDE.
My suggestion is to start with this tool.
In any case, we are here to help you.
PilotLogic Architect and Core Programmer
Attachments:
Last edit: 10 months 2 weeks ago by Sternas Stefanos.
Please Log in or Create an account to join the conversation.
- Bernie Z
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
10 months 2 weeks ago #16065
by Bernie Z
Replied by Bernie Z on topic Converting Delphi source code to Typhon
Thanks for the conversion tool tip. I tried it, but there were too many exceptions. The amount of code to convert is less than 200 lines so a manual conversion is ok, and preferable. The painful part is the small number of components missing for which I cannot find substitutes. Will just have to continue experimenting I guess.
Please Log in or Create an account to join the conversation.
- LuZZZZi
- Offline
- Junior Member
-
Less
More
- Posts: 63
- Thank you received: 0
10 months 2 weeks ago - 10 months 2 weeks ago #16066
by LuZZZZi
Replied by LuZZZZi on topic Converting Delphi source code to Typhon
Take a look at this site: wiki.freepascal.org/Webbrowser
I think that there is an alternative component for you.
IStream is available in the unit "types"
Variant type is available in the unit "variants"
C:\codetyphon\fpcsrc\packages\winunits-base\src\activex.pp for IStream.....
Cheers
I think that there is an alternative component for you.
IStream is available in the unit "types"
Variant type is available in the unit "variants"
C:\codetyphon\fpcsrc\packages\winunits-base\src\activex.pp for IStream.....
Cheers
Last edit: 10 months 2 weeks ago by LuZZZZi.
Please Log in or Create an account to join the conversation.
- Bernie Z
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
10 months 2 weeks ago #16067
by Bernie Z
Replied by Bernie Z on topic Converting Delphi source code to Typhon
I gave it a quick try and am closer to a solution..not quite there yet, but looks good! You sure know your way around the typhon libs.
Please Log in or Create an account to join the conversation.
- LuZZZZi
- Offline
- Junior Member
-
Less
More
- Posts: 63
- Thank you received: 0
10 months 2 weeks ago #16068
by LuZZZZi
Replied by LuZZZZi on topic Converting Delphi source code to Typhon
I'm often use the function "Search in files" for a component name. If there is no result then I'm changing to the WWW to get a result.
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
10 months 2 weeks ago - 10 months 2 weeks ago #16069
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic Converting Delphi source code to Typhon
PilotLogic Architect and Core Programmer
Attachments:
Last edit: 10 months 2 weeks ago by Sternas Stefanos.
Please Log in or Create an account to join the conversation.
- Bernie Z
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
10 months 2 weeks ago #16070
by Bernie Z
Replied by Bernie Z on topic Converting Delphi source code to Typhon
Many thanks, LuZZZZi and Sternas Stefanos, great tip. I can complete it from here.
Please Log in or Create an account to join the conversation.