Sign in Join

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

Mailing lists / fpc-pascal / 2001-06

Where can I learn more about Objects? (How to make a list of objects)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Michael Vogel

Hi!

I managed to get my TCP-functions to work correctly (reading with the "Recv"-function instead of reading with "readln" was the solution) (*)

Now I want to implement the different protocols.

I programmed some years ago with Delphi, so I now, what's possible with Pascal and objects, but I don't really know _how_ I can do it ... ;-)

What I want to do:
I have got a SMTP-object. The headers should be a list of objects, but I don't really know, how to do it.

Are there any sample programs that can teach me this? Is there any documentation I can use? What about Delphi-books?

Later, when I finished the SMTP-object, I will implement the POP3-object. There the messages should be a list of objects of the POP3-object.

The headers of an object should be a list of objects of a message, and so on.

I think it's a good concept, I only need a hint for the coding ...

Thanks!

Michael

(*) PS: I guess it's a bug. Do I have to write a bugreport or do the
developers are reading here in the mailinglist?
"... And remember: if you don't like the news, go out and make some of your own." -- "Scoop" Nisker, KFOG radio reporter Preposterous Words

Reply by email

Thomas Schatzl
to Michael Vogel

Subject: [fpc-pascal]Where can I learn more about Objects? (How to make a list of objects)

Show quoted text 5 lines
Hi! I programmed some years ago with Delphi, so I now, what's possible with Pascal and objects, but I don't really know _how_ I can do it ... ;-)

Freepascal provides some non - GUI classes in the so called FCL (Free Component Library). TList or its' descendants might prove good candidates for your task.

Are there any sample programs that can teach me this? Is there any documentation I can use? What about Delphi-books? I think it's a good concept, I only need a hint for the coding ...

There might be some FCL documentation already in the documentation sources. Else use the FCL sources for further reference. Since you already did some programming with Delphis VCL there should be no problems; the method naming is quite straightforward (e.g. identical to Delphi VCL) too. Feel free to ask here if you're stuck.

Show quoted text 6 lines
Thanks! Michael (*) PS: I guess it's a bug. Do I have to write a bugreport or do the developers are reading here in the mailinglist?

Yes they are. I think it would be fine if you put the corrected program somewhere on a FTP/Web and send a message including a problem description (what you fixed) and a link to the file to one of the developers (see http://www.freepascal.org/ , developers) or to FPC - Devel or here.

Regards,
Thomas

Reply by email