Recent

Author Topic: Import any components/packages from Delphi 6 or Delphi 7 Prodessional  (Read 783 times)

raghavsood999

  • Newbie
  • Posts: 1
I need to import or export packages or components such as TServerSocket or TClientSocket or Indy Components from Delphi 6 or Delphi 7-8 Professional or later editions into lazurus IDE.

I dont wish to download from torry.net or github because i am scared of a virus. Some malware are private crypted and may have FUD runtime detections therefore comeout clean even if scan on virustotal.


marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8732
  • FPC developer.
Not possible. Server/clientsocket is proprietary and never supported, and the indy9 versions are too old.

I suggest you download Indy 10 components, and get on with it.

ASBzone

  • Sr. Member
  • ****
  • Posts: 461
  • Automation leads to relaxation...
    • Free BrainWaveCC Console Utilities
I dont wish to download from torry.net or github because i am scared of a virus.

I recommend that you implement good host-based anti-malware protection (for example, Cylance).  If you are connected to the internet, you can be attacked even when you aren't explicitly downloading anything.


Some malware are private crypted and may have FUD runtime detections therefore comeout clean even if scan on virustotal.

Precisely.  You cannot simply rely on one-time static scans of binaries for malware content.  If you are that concerned, you should have a real-time scanning engine running on your hosts as well -- one that does not only rely on "signatures".
-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.11 r63516 / FPC v3.2.1-r46879 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 2004 (Build 19041.508)
Other Systems: Windows 10 Pro x64, Version 2004 or greater

avra

  • Hero Member
  • *****
  • Posts: 2003
    • Additional info
I dont wish to download from torry.net or github because i am scared of a virus.
Do not use or start executables. Download source, examine and inspect it, compile and use it.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 815
    • Lebeau Software
I need to import or export packages or components such as TServerSocket or TClientSocket or Indy Components from Delphi 6 or Delphi 7-8 Professional or later editions into lazurus IDE.

Packages are compiler-specific, and components typically depend on specific compilers' RTLs, too.  Although FreePascal does have a Delphi7-like RTL, it is not the actual Delphi RTL, there is no 1-to-1 correlation for many functions/units/classes, or there are functional differences between them.  So, no, there is no direct way to use Delphi packages as-is in FreePascal/Lazarus, and vice versa.  You need to create and compile new packages for each compiler that you want to use components in, and make sure their source codes are compatible with those compilers.

TClientSocket/TServerSocket are proprietary to Delphi's compiler/RTL, they can't be used in FreePascal/Lazarus.

Indy 10 is already available in Lazarus' OPM.  You don't need to download and install Indy manually, unless you are installing a newer update than what OPM has available.

I dont wish to download from torry.net or github because i am scared of a virus.

Source code can't carry viruses.  Only binaries can, and components are rarely distributed in binary form since binaries are platform-specific and even IDE-specific.  It is more flexible for component authors to distribute source code that can be compiled in supported compilers as needed.  And it is extremely rare that a compiler would produce component binaries with viruses in them (only if the compiler itself is infected).

Some malware are private crypted and may have FUD runtime detections therefore comeout clean even if scan on virustotal.

Again, that only applies to binary executables, not to source code.
« Last Edit: July 16, 2020, 12:09:56 am by Remy Lebeau »
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

PascalDragon

  • Hero Member
  • *****
  • Posts: 2142
  • Compiler Developer
I dont wish to download from torry.net or github because i am scared of a virus.

Source code can't carry viruses.  Only binaries can, and components are rarely distributed in binary form since binaries are platform-specific and even IDE-specific.  It is more flexible for component authors to distribute source code that can be compiled in supported compilers as needed.  And it is extremely rare that a compiler would produce component binaries with viruses in them (only if the compiler itself is infected).

To be fair: most commercial Delphi components are distributed as binary only as more often than not the license with source code is quite a bit more expensive... Though as long as one downloads them from the original publisher there shouldn't be a problem with viruses...

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8732
  • FPC developer.
I think nowadays most components are with source or subscription. The hobby Delphi programmer is mostly gone.

Thaddy

  • Hero Member
  • *****
  • Posts: 10487
Not possible. Server/clientsocket is proprietary and never supported, and the indy9 versions are too old.

I suggest you download Indy 10 components, and get on with it.
He refers to Delphi 7 professional and that comes with full sourcecode. If he owns D7 Pro there is no issue.
Except for distribution as source..
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

PascalDragon

  • Hero Member
  • *****
  • Posts: 2142
  • Compiler Developer
I think nowadays most components are with source or subscription. The hobby Delphi programmer is mostly gone.

Just one example: the UniDAC components by DevArt. Only the highest tier contains the source code.

The other one I checked (DevExpress) indeed contains source code with all variants.

Not possible. Server/clientsocket is proprietary and never supported, and the indy9 versions are too old.

I suggest you download Indy 10 components, and get on with it.
He refers to Delphi 7 professional and that comes with full sourcecode. If he owns D7 Pro there is no issue.
Except for distribution as source..

That would still leave the problem of getting them to work with FPC as there are slight, but important differences in TDataset and related components.

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8732
  • FPC developer.
Not possible. Server/clientsocket is proprietary and never supported, and the indy9 versions are too old.

I suggest you download Indy 10 components, and get on with it.
He refers to Delphi 7 professional and that comes with full sourcecode. If he owns D7 Pro there is no issue.
Except for distribution as source..

And for all of those reasons not supported by FPC/Lazarus, which was my point.

Thaddy

  • Hero Member
  • *****
  • Posts: 10487
Re: Import any components/packages from Delphi 6 or Delphi 7 Prodessional
« Reply #10 on: July 18, 2020, 02:34:18 pm »
But it is possible and works.
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 815
    • Lebeau Software
Re: Import any components/packages from Delphi 6 or Delphi 7 Prodessional
« Reply #11 on: July 20, 2020, 07:30:24 pm »
To be fair: most commercial Delphi components are distributed as binary only as more often than not the license with source code is quite a bit more expensive...

The key word being commercial.  Commercial authors tend to have more resources available.  They have multiple IDEs installed, maybe even complex build systems.  They can deploy binaries for all the various IDE versions and Update Pack combinations and such.  Things that are affected by binary distributions.  Your every-day hobby/small-team authors may not be able to do all of that.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8732
  • FPC developer.
Re: Import any components/packages from Delphi 6 or Delphi 7 Prodessional
« Reply #12 on: July 20, 2020, 07:38:56 pm »
But it is possible and works.

And asking for support here is pointless.

 

TinyPortal © 2005-2018