|
-
October 11th, 2012, 01:12 PM
#9
Re: How To Handle An Open Document
The code above should have showed CFooDoc::ReadFileData(void). It does reside in my Doc class.
I understand about the Wait cursor, thanks.
So, let's say I just delete the read file function all together. Now when I open a file it would be handled by the default, built in code. From what I am reading, if I use a pDoc->GetDocument() that will pull my file data into a variable which would allow me to manipulate it? Then how would I push it back to the Window as an updated document with changes that were made by other functions?
I know I must be making this harder than it needs to be. I just need to:
1. Open a file and read it into memory. That works by default.
2. How do I access that data directly so I can manipulate it?
3. How do I push those updates back to the screen so I can see them?
4. Then I would use GetDocument() to retrieve the data so it can be Serialized back to the disc.
Coding is a hobby. I learned assembly language as my first language on a 24-bit mainframe (SEL 840) that ran on a Flight Simulator. Then I progressed to a 16-bit Texas Instruments 980 computer, and eventually was able to exchange data between the computers. That seemed easy compared to what I am now trying to teach myself. I learn fast when I have an example that works. I have books, but just can't seem to find the right answer to getting this to work. Been at it for a few weeks now and have learned a lot, just not what I need 
A specific line or two of code would be very beneficial.
Thanks for the help.
John
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
|
Click Here to Expand Forum to Full Width
|