From: Bubba on
Greetings,

we were given short note for doing a project on college (two days ago, due
is on Monday), that is related to OOP, or to be exact, MFC library.
Unfortunately, we were given literally no documentation, so it's free for
all.

Basically, I have to create application with at least two forms or
dialogues. Application has to be able to show persons in a list, and that
those persons can be sorted by name or surname. They can also be sorted by
city or address, but then we have to use tree control.

Person can be removed, added or changed. Each person can get indefinite
telephone numbers and previous addressee. It also must be possible to save
data when exiting the application and loading them afterwards.

I did some Googleing and got books, but none seems to have systematic for
my problem, in other words, they seem to be to vast in handling the
subject, so I'd like to know what's the best way to start doing this type
of application.

Best regards and thanks in advance!

--
"If you lie to the compiler, �|� .-'``'-.,_,.-'``'-.,
it will get its revenge." �|� '-.,_,.-'``'-.,_,.-'
-- Henry Spencer �|� /��\
� http://math2.ath.cx � �|� '-.,_,.-'``'-.,_,.-'
From: Giovanni Dicanio on
On 16/06/2010 17:15, Bubba wrote:

> we were given short note for doing a project on college (two days ago, due
> is on Monday), that is related to OOP, or to be exact, MFC library.
> Unfortunately, we were given literally no documentation, so it's free for
> all.

Glad that some colleges still teach MFC... :)

However, I think you can't do this in a week unless you have previous
knowledge of C++ and MFC.


> I did some Googleing and got books, but none seems to have systematic for
> my problem, in other words, they seem to be to vast in handling the
> subject

You can learn "building blocks" from the books, but then you have to put
them together to build your entire app.

If you want more specific help feel free to post...

Giovanni
From: Hans-J. Ude on
Bubba schrieb:

>we were given short note for doing a project on college (two days ago, due
>is on Monday), that is related to OOP, or to be exact, MFC library.
>Unfortunately, we were given literally no documentation, so it's free for
>all.

The best point of starting with MFC is to understand the Scribble
Tutorial. It covers so many aspects under one hood. Not always easy to
find but here it is:

http://msdn.microsoft.com/en-us/library/aa716528%28VS.60%29.aspx

Hans

From: Joseph M. Newcomer on
See below...
On 16 Jun 2010 15:15:58 GMT, Bubba <nickname(a)banelli.biz.invalid> wrote:

>Greetings,
>
>we were given short note for doing a project on college (two days ago, due
>is on Monday), that is related to OOP, or to be exact, MFC library.
>Unfortunately, we were given literally no documentation, so it's free for
>all.
****
Actually, you have thousands of pages of documentation. Which is almost worse than having
none at all. It comes with your compiler.
****
>
>Basically, I have to create application with at least two forms or
>dialogues. Application has to be able to show persons in a list, and that
>those persons can be sorted by name or surname. They can also be sorted by
>city or address, but then we have to use tree control.
****
Sounds to me like a candiate for a dialog-based app. Fortunately, these are the easiest
ones to write. But tossing an assignment like this at a student seems to be gratuitous
sadism on the part of the instructor. I usually spend a couple hours showing my students
how to create basic dialog-based apps. It is not trivial to get into, and OO programming
is a tiny, tiny part of what is going on.
>
>Person can be removed, added or changed. Each person can get indefinite
>telephone numbers and previous addressee. It also must be possible to save
>data when exiting the application and loading them afterwards.
>
>I did some Googleing and got books, but none seems to have systematic for
>my problem, in other words, they seem to be to vast in handling the
>subject, so I'd like to know what's the best way to start doing this type
>of application.
*****
First, I consider this assignment grossly unfair. As someone who has taught and sometimes
continues to teach it, I would consider an assignment like this that did not include
in-class demonstrations of how to build an app to be impossible. You can convey this to
your instructor for what little good it would do. Other than annoying him/her.

Second, build a simple dialog-based app. Problem here is you have to learn a WHOLE LOT
about edit controls, push buttons, list controls, etc. before you can begin to make sense
of this, and that is a LOT to do in a single assignment without training! I'd never give
an assignment this complex in my classes, and we spend about 30 hours just in lectures
about how to use MFC. So your problem is NOT just "building a dialog" but understanding
the sublties of a bunch of controls ALL AT ONCE.

Note: I learned MFC by doing the Scribble tutorial and it took me about three days to get
competent, and I was *already* a Windows programmer and knew all about the controls!

It then took me two years to become an MFC "expert".

Dialogs are easy. Controls are not hard, there's just a LOT to learn about them before
you can use them well. You have every right to feel overwhelmed, and I don't have much
advice except to buckle down and try the Scribble tutorial. It's the only thing out there
that can give you half a chance!
joe
****
>
>Best regards and thanks in advance!
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Stephen Wolstenholme on
On 16 Jun 2010 15:15:58 GMT, Bubba <nickname(a)banelli.biz.invalid>
wrote:

>Greetings,
>
>we were given short note for doing a project on college (two days ago, due
>is on Monday), that is related to OOP, or to be exact, MFC library.
>Unfortunately, we were given literally no documentation, so it's free for
>all.
>
>Basically, I have to create application with at least two forms or
>dialogues. Application has to be able to show persons in a list, and that
>those persons can be sorted by name or surname. They can also be sorted by
>city or address, but then we have to use tree control.
>
>Person can be removed, added or changed. Each person can get indefinite
>telephone numbers and previous addressee. It also must be possible to save
>data when exiting the application and loading them afterwards.
>
>I did some Googleing and got books, but none seems to have systematic for
>my problem, in other words, they seem to be to vast in handling the
>subject, so I'd like to know what's the best way to start doing this type
>of application.
>
>Best regards and thanks in advance!

The project you describe is nearly impossible to do in the time
allocated. It took me a few months to become confident using MFC
despite the fact that I was already using a similar development
system. Try the Scribble tutorial to find your feet and if you still
have some time to spare start on the allocated project. If you manage
to complete the project I will buy it!

Steve

--
Neural Planner Software Ltd www.NPSL1.com
EasyNN-plus. Neural Networks plus. www.easynn.com
SwingNN. Forecast with Neural Networks. www.swingnn.com
JustNN. Just Neural Networks. www.justnn.com