On 26 Ago, 19:52, JustBoo <B...@boowho.com> wrote:
> Francesco wrote:
> > Creating simple widgets on top of it, like frames, buttons and
> > textboxes, led me to face some interesting issues about inheritance -
> > in my homemade simple GUI,
> [...]
> > Well, just my two cents, hope this can help you get an inspiration for
> > your project.
> > Cheers,
> > Francesco
>
> How’s this. You mentioned you're using a GUI. Build yourself (to
> learn) a hand-crafted GUI-based "database" application. All with only
> C++. It teaches many aspects of C++ programming. I'll use the classic
> Audio CD/Record-Collection thingy as an example.
Hi JustBoo,
I'm not sure about whether it's me who has mistaken your post or the
other way round - it was the OP who was looking for suggestions, not
me, although I take advantage and inspiration wherever I can.
Actually, I'm not simply using a GUI, I'm creating one on top of the
Simple DirectMedia Layer library (
http://www.libsdl.org). Well, to be
more precise, I did it two years ago, one year after having started
learning C++. More about that here below.
> Research Comma Separated Value ( CSV ) files. Think of each row of a
> text file as a row (record) in a database; like a spreadsheet. (I
> would *not* use XML right now. Just use a plain text file.) Learn to
> get a line in at a time and parse that line into usable variables.
[details snipped]
I already dug those subjects. Actually, I've also created my own
binary formats, even back when I used only VB. One of my latest C++
projects involved parsing some table-formatted HTML files to harvest
their data, store it in a database file and output div-formatted HTML
files there on. This project is currently messed up - I've started it
as a single-source-file parser, but now I'm splitting it into
different TU because I'm about to add new features.
For curiosity's sake, I've set up a simple website to share a program
of mine - the only one that is somewhat complete and somewhat
interesting to use - I shared it elsewhere before, but that online
archive is not currently available.
This program is about the centers of a triangle and various other
entities related to them.
It can be found here:
http://fscode.altervista.org
I've had a look to the source because I had to recompile it, and I
found several oddities and bad habits to fix. I think I'll rearrange
it to separate the GUI part and create a static library out of it, so
that I can reuse it - that's effectively the task I'm pursuing now,
I'm centralizing all the utilities I've created in these three years
and I'm revising all the code to correct it under the light of the new
things I learned.
Sorry for going so off-topic, feel free not to feed this branch of the
thread.
Best regards,
Francesco