Text input

I have just started MFC, I have created frame and virtual window, and assigned on_char fro keyboard input. HOw do I make the input longer in other words do I have to define a data structure. I am trying to do a editor. I would also like it to save. HOw is this done.
AnPatAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AnPatAuthor Commented:
I need help in this please, by the way how big is MFC, people around my place don't even know what it is. Any help to learn this programming would be appiciated
Thanks.
0
akalmaniCommented:
Hope this helps u ?

Create an application and derive the CView from CEditView or from CRichEditView all it will be done for u. This is using MFC classes.
If u want to write your own editor then u can do that as u said that is create a CString variable and go on appending it OnChar() and in the Draw() fucntion of CView u use a function DrawText() to draw the text each time.For storing u can have a Serialize() fucntion in CDocument which will Serialize the CString Variable and retireve it u if want it back.

U said u want help on MFC u go to msdn help and there u will get the MFC heirarchy chart that will give u a clear idea about MFC classes.
0
JOE_WIEMANNCommented:
Check out codeguru.com to find some great example code for MFC programming.
0
SwordSaintCommented:
What I think is akalmani's comment is the correct answer. I think you can award the points to him/her.
0
akalmaniCommented:
HI !!!!!
   Do u want any more help regariding this ?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.