Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
Ported from Delphi/Kylix
»
convert Sebran delphi(4) code to lazarus
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Offical launch of the 1 B...
by
Gustavo 'Gus' Carreno
[
Today
at 12:50:46 am]
what to do if my target M...
by
Laksen
[
Today
at 12:49:12 am]
For-in loop over constant...
by
ASerge
[
Today
at 12:36:09 am]
Converting a string/index...
by
TRon
[April 18, 2024, 11:56:37 pm]
exclude ALL packages from...
by
PascalDragon
[April 18, 2024, 11:33:29 pm]
Demoscene The Champs Crac...
by
KodeZwerg
[April 18, 2024, 11:29:50 pm]
Poll: Watches and Display...
by
440bx
[April 18, 2024, 10:55:14 pm]
Database standards OR Am ...
by
dseligo
[April 18, 2024, 10:50:26 pm]
BUG REPORT: Unable to gen...
by
PascalDragon
[April 18, 2024, 10:24:23 pm]
How to: create DLL file f...
by
paule32
[April 18, 2024, 10:23:59 pm]
Have anyone develop UEFI ...
by
PascalDragon
[April 18, 2024, 10:14:15 pm]
Lazarus for Windows on aa...
by
PascalDragon
[April 18, 2024, 10:09:10 pm]
The weird Rewrite bug
by
PascalDragon
[April 18, 2024, 09:58:53 pm]
Assign (textfile) not com...
by
PascalDragon
[April 18, 2024, 09:51:50 pm]
Question for people who h...
by
PascalDragon
[April 18, 2024, 09:44:32 pm]
Linux Workspaces -- StayO...
by
AmatCoder
[April 18, 2024, 08:34:20 pm]
I just released a commerc...
by
Seenkao
[April 18, 2024, 07:57:21 pm]
Access violation when re-...
by
TRon
[April 18, 2024, 07:37:31 pm]
[SOLVED] assembler name i...
by
TRon
[April 18, 2024, 07:26:33 pm]
A fairly simple sound sol...
by
KodeZwerg
[April 18, 2024, 07:01:52 pm]
Step-into the field sette...
by
Martin_fr
[April 18, 2024, 06:54:19 pm]
[Fun Fact] PNG and Micros...
by
Ten_Mile_Hike
[April 18, 2024, 06:24:19 pm]
HTTP/2+HTTP/1.1+WebSocket...
by
iLya2IK
[April 18, 2024, 06:14:30 pm]
Improvement of TFPTimerTh...
by
AlexTP
[April 18, 2024, 05:56:38 pm]
Arabic text, problem on L...
by
nouzi
[April 18, 2024, 05:21:27 pm]
« previous
next »
Print
Pages: [
1
]
2
3
...
8
Author
Topic: convert Sebran delphi(4) code to lazarus (Read 102353 times)
von_ks
Jr. Member
Posts: 57
convert Sebran delphi(4) code to lazarus
«
on:
February 03, 2009, 11:49:56 am »
Hi all
I have problem with converting an opensource freeware Programm to lazarus.
The name of this programm is SEBRAN and is writen by delphi.
It is a programm for kids and I want to modify it for my little son.
can sombody help me and give me some tips how can I do that ??
The link of the source code is
http://www.wartoft.nu/software/sebran/sebran_139_source.zip
thanks
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2661
Re: convert Sebran delphi(4) code to lazarus
«
Reply #1 on:
February 03, 2009, 11:58:25 am »
See the documents in the wiki for people
coming from Delphi
.
Logged
von_ks
Jr. Member
Posts: 57
Re: convert Sebran delphi(4) code to lazarus
«
Reply #2 on:
February 03, 2009, 12:07:54 pm »
I have just read it, and I have tried it, but no seccess, and so I come here to find mor information and some help.
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2661
Re: convert Sebran delphi(4) code to lazarus
«
Reply #3 on:
February 03, 2009, 12:10:43 pm »
What doesn't work?
Logged
von_ks
Jr. Member
Posts: 57
Re: convert Sebran delphi(4) code to lazarus
«
Reply #4 on:
February 03, 2009, 12:22:35 pm »
Hi
I am not sure.
There are several files to have be compiled and work together.
first I wanted to convert ist separatly but it did not work, so I have made a package and tried it again but it did not work either.
The only thing that has worked, was converting dfm file to lfm file.
But no chance by .pas file and I am wondering if it is passible at all.
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2661
Re: convert Sebran delphi(4) code to lazarus
«
Reply #5 on:
February 03, 2009, 12:25:36 pm »
I think it is possible, but if all you can say, that is doesn't work, then I cannot help you.
Logged
von_ks
Jr. Member
Posts: 57
Re: convert Sebran delphi(4) code to lazarus
«
Reply #6 on:
February 03, 2009, 01:21:46 pm »
which information do you need ?
I send you now the message for compiling the package.
Hint: Start of reading config file D:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.cfg
Hint: End of reading config file D:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.2.2 [2008/10/05] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling package01.pas
Compiling .\sebran\Delphi4\GENERELL.PAS
D:\Temp\sebran\Delphi4\GENERELL.PAS(1,1) Fatal: Can't find unit WinTypes used by Generell
kind regards
Kawous
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2661
Re: convert Sebran delphi(4) code to lazarus
«
Reply #7 on:
February 03, 2009, 01:26:48 pm »
Yes, that is clear information. Now I can see what doesn't work and what goes wrong.
AFAIK, wintypes is replaced by windows unit in later delphi version. If you compile for windows, you can try to replace it by the windows unit of fpc.
If you want to be able to target other Lazarus targets later (Linux, Mac OS X), then you should use the LCLIntf and/or the LCLType unit.
Logged
von_ks
Jr. Member
Posts: 57
Re: convert Sebran delphi(4) code to lazarus
«
Reply #8 on:
February 03, 2009, 01:41:46 pm »
first thank you for information !
I am using windows XP SP2.
but I have now more question.
where is the windows unit for fpc ?
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2661
Re: convert Sebran delphi(4) code to lazarus
«
Reply #9 on:
February 03, 2009, 01:49:13 pm »
Quote from: von_ks on February 03, 2009, 01:41:46 pm
where is the windows unit for fpc ?
In the place where the fpc RTL units are installed. If you don't know, just replace wintypes with windows and compile.
Logged
von_ks
Jr. Member
Posts: 57
Re: convert Sebran delphi(4) code to lazarus
«
Reply #10 on:
February 03, 2009, 02:01:53 pm »
It seems to be many of them.
Now comes the message that can not find the unit WinProcs.
should it be also replaced ?
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2661
Re: convert Sebran delphi(4) code to lazarus
«
Reply #11 on:
February 03, 2009, 02:03:36 pm »
Yes. Really, these units are from 16 bits windows time, IIRC. I hope it did compile with Delphi 4...
Logged
von_ks
Jr. Member
Posts: 57
Re: convert Sebran delphi(4) code to lazarus
«
Reply #12 on:
February 03, 2009, 02:11:35 pm »
It can not compile with IIRC .
the same message .
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2661
Re: convert Sebran delphi(4) code to lazarus
«
Reply #13 on:
February 03, 2009, 02:16:58 pm »
See
IIRC
.
The units wintypes and winprocs both have been replaced with the windows unit (since Delphi 2 or Delphi 3).
Logged
von_ks
Jr. Member
Posts: 57
Re: convert Sebran delphi(4) code to lazarus
«
Reply #14 on:
February 03, 2009, 02:23:31 pm »
now it has problem with the unit Graphics
and here are all units used by the part generell
SysUtils, Windows, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, ExtCtrls, Fileread, MPlayer;
Logged
Print
Pages: [
1
]
2
3
...
8
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
Ported from Delphi/Kylix
»
convert Sebran delphi(4) code to lazarus
TinyPortal
© 2005-2018