Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Converting Delphi source code to Typhon 1 year 3 months ago #16063

  • Bernie Z
  • Bernie Z's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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.
 

Please Log in or Create an account to join the conversation.

Converting Delphi source code to Typhon 1 year 3 months ago #16064

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4426
  • Thank you received: 1072
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.





 
PilotLogic Architect and Core Programmer
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Converting Delphi source code to Typhon 1 year 3 months ago #16065

  • Bernie Z
  • Bernie Z's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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.

Converting Delphi source code to Typhon 1 year 3 months ago #16066

  • LuZZZZi
  • LuZZZZi's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 69
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Last edit: by LuZZZZi.

Converting Delphi source code to Typhon 1 year 3 months ago #16067

  • Bernie Z
  • Bernie Z's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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.

Converting Delphi source code to Typhon 1 year 3 months ago #16068

  • LuZZZZi
  • LuZZZZi's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 69
  • Thank you received: 0
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.

Converting Delphi source code to Typhon 1 year 3 months ago #16069

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4426
  • Thank you received: 1072
You can use and Typhon=> Search=> Advance Find

 


 

 
PilotLogic Architect and Core Programmer
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Converting Delphi source code to Typhon 1 year 3 months ago #16070

  • Bernie Z
  • Bernie Z's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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.

  • Page:
  • 1