Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic VC++ Questions

Status
Not open for further replies.

noobie

Technical User
Mar 25, 2002
6
AU
Okay, I posted these yesterday, but the thread mysteriously disappeared. I want to create a record keeping program that will dynamically link records, write to file, and use multiple dialog boxes for the GUI. Here are my problems:

1. I can code the program to link and write the records to disk. I can create the interface with MFC AppWizard under VC++ 6. I can't use the two together. How do I get multiple dialog boxes to interface with the .cpp file?
Say I call it record.cpp. It adds new records, links them, etc. Now how do I get a dialog box to add records?

Do I include the record.cpp as if it were a header? Is there something special I should do other than #include or is there some type of change I need to make to the program itself?

If one dialog box includes the record.cpp, then adds records, when another dialog box includes record.cpp, will it simply look at the current version in memory and retain all variable values, etc., or will it create a new one, abandoning the old one in main memory somewhere and causing a memory leak?


Can someone please point me to a tutorial, or give me a little help here? The books I have don't really discuss this sort of thing at all, or at least not specifically, and I could really use a little help. Thx.
 

You really need to read about DDX (Dialog Data Exchange) and DDV (Dialog Data Exchange and Validation). Check out the MSDN.

I would use a CArray to hold the data then Serialize the data when you store it.

Brother C
 
DDX and DDV? Excellent. One of my books covers that, but I didn't know that DDX was what I wanted to do. Thank you.

PS - MSDN? I honestly don't understand why people love it. I've tried and tried to use that site, but it just frustrates me coz the stuph is written for people who should know it already.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top