Solved

VC++ excercise

Posted on 1998-06-03
4
189 Views
Last Modified: 2013-11-19
I have to write a excerice by VC++ to solve this problem :
When build houses, people want to know the quality of soil where the
houses will be there. A method is drill some holes into the soil, then
research the data of the holes.

My program should have a dialog that cointain a list box, an edit box,
some buttons ( OK, Cancel, Add, Edit). Engineers can input the name of
a hole by edit box, press Add the the string of the hole is displayed in
the list box. They can choose one hole from the list box, press Edit, then
the second dialog is diaplayed, after that they can put new data or
edit old data of the hole which they chose. At last they press button
Save in the second dialog, all data is saved in a file.

I'm a biginner in VC++ so I wonder how to make clear the ralations
between the dialog controls and buttons. I also wonder how to
save the data by VC++ in this case.

Could you help me some suggesions ? (program is better, I need
it very much to learn)

Thanks
0
Comment
Question by:nhcuong
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:kinkajou
ID: 1315963
NHChuong,

I have a program that is very similar to the program you specify above that uses MFC/MSVC++ 5.0 that you could use to learn how to get data from a user activated dialog into the rest of you program.

You may want to see if anyone else comments on where you might find this sort of example on the Web, though.

Kinkajou
0
 

Author Comment

by:nhcuong
ID: 1315964
Kinkajou,
Could you send me soon !
My address:
nhcuong@iib.bauing.tu-darmstadt.de
0
 
LVL 2

Accepted Solution

by:
kinkajou earned 50 total points
ID: 1315965
NHChuong,

If you feel that the example programs I sent you are sufficient to answer you question then accept my answer.

Otherwise, reject....
Kinkajou
0
 

Author Comment

by:nhcuong
ID: 1315966
I've just read your program. I've not understood all yet
but I think it will be useful for me.
Thanks and see you again !
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now