|
-
March 12th, 2003, 10:15 PM
#1
Microsoft Visual C++ help
Hi,
Ive got an assignment to do in Visual C++, but i'm stuck, so if any1 could help me out, it would really help me loads.
Assignment:-
Using MS Access, generate a table with the following fields:
Family name
First name
Registration 'number' (8 characters, text)
Gender(‘M’ or ‘F’)
Course (‘A’,’B’, or ‘C’).
Fill the table with a dozen ‘plausible’ records.
Using Visual C++, generate a database aware application which allows the user to browse through the records. The user should be able to use a dialog box to alter any of the fields on a record.
The dialog box should provide the choice for the ‘Gender’ field by using radio buttons, and the choice for the ‘Course’ field by using a drop-down list box which contains the entries: ‘Applied Electronics’, ‘Broadcast Technology’ and ‘Applied Computer Technology’. (The corresponding database entries are ‘A’, ‘B’, and ‘C’ respectively.
The registration number should be validated, i.e. checked that it only contains numeric characters.
I have made the database and started the Visual C++ stuff, which includes linking the database to the program. Up to now the Visual C++ program shows a screen which has 5 fields (the 5 needed), and displays each record. You can go to the next, first, last and previous records by using the File and Edit buttons atthe top of the screen.
I have added buttons next to each of these fields, but dont know how to make a dialogue box pop up when the button is clicked. and how can i change the records from this dialogue box and save them if the user clicks ok, but doesnt save them if thry press cancel????
If any1 knows how to do any of this, please post in here cos its driving me mad !!!
Thanks in advance !!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|