hi, i'm new to this forum, but i've been looking for a solution to this for some time. if anyone could give me help, or at least point me in the right direction, i'd be greatful.
I amd using MS Visual C++ 6.0 on a windows xp pro system. I created a SDI project with database support. I'm looking for a way to transfer a variable from my CProgramView.cpp portion to the CMainFrame.cpp portion of my code. What i really want to do is have a variable save to file when the user exits the program. I tried deleting the [x] button and such, but i can't do that. then i tried linking the [x] button to the close command inside the cprogramview.cpp that i created. that didn't work.
so i'm looking for a way to get variable 'a' which is an int (must be long to save tho, i don't know why) from the view portion of my program to the mainframe of the program.
any help would be nice.