Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-12

porting Windows socket app to Linux

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author
to Anulio Ruggierro: Hi, I am interested in porting a Win32 application which only uses the WinAPI socket…
Anulio Ruggierro wrote 8 lines
Hi, I am interested in porting a Win32 application which only uses the WinAPI socket library to Linux (Red Hat 6.0+). I was wondering if this can be one with Lazarus Free Pascal without any changes to the code (it was written in Delphi). The app does not use MFCs or anything like that (there is no GUI at all), it only makes calls from the standard WInAPI, so it should be fairly easy to port. I was initially going to rewrite the Delphi code in C++, and then port it, but then I ran accross this project and figured it may be easier.

You shouldn't have any problems other than changing WinAPI calls to the appropriate Linux calls. There is a sockets unit that contains low-level socket handling, and the 'inet' contributed unit has name resolution stuff in it. Using these, I guess it should be fairly easy to port.

Michael.

Reply by email

Michael A. Hess
to Anulio Ruggierro: Hi, I am interested in porting a Win32 application which only uses the WinAPI socket…
Anulio Ruggierro wrote
I was wondering if this can be one with Lazarus Free Pascal without any changes to the code (it was written in Delphi).

The basic FPC and FCL library can compile any standard Delphi application that doesn't use GUI. The LCL is what is being worked on to support the GUI end of Delphi. I would say that you have a very good chance of being able to port the code using FPC without much in the way of modifications.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Anulio Ruggierro

Hi, I am interested in porting a Win32 application which only uses the WinAPI socket library to Linux (Red Hat 6.0+). I was wondering if this can be one with Lazarus Free Pascal without any changes to the code (it was written in Delphi). The app does not use MFCs or anything like that (there is no GUI at all), it only makes calls from the standard WInAPI, so it should be fairly easy to port. I was initially going to rewrite the Delphi code in C++, and then port it, but then I ran accross this project and figured it may be easier.

Thanks in advance.
______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com

Reply by email