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.
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.