Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 25th, 2007, 07:06 PM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Irving_Rivas
Default Text Editor Creation

Hey everyone! I've a task I'd like help with.

I have to make a Text Editor, sort of Linux's "Nano" or DOS's "Edit".
The issue that makes me post this is the following: While the user is writing, where are all the characters stored? I was thinking of a "char *" variable, but it seemed farfetched...
So, any ideas? Anywhere I could read something on the subject?
But most importantly, is there any Open Source Text editor built in C++ whose code I could check?

Thanks in advance for reading this.:)

It's not the world you live in, it's the people you live with.
Reply With Quote
  #2 (permalink)  
Old January 29th, 2007, 09:17 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 103
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Geo121
Default

I'm not exactly sure what you are looking for when you ask where the characters are stored otherwise I could give you more help than saying "What do you mean" LOL... an open sourcetext editor is similar to windows notepad created with the C++ Win32 API this link takes you to the page of the program but the actual code isn't all there you have to goto the homepage and follow all of the lessons or you can download the source

http://www.winprog.org/tutorial/app_four.html

If you can give me a more exact question I may be able to help you better

~ Geo

~ Don't take life too seriously, you'll never get out alive!
Reply With Quote
  #3 (permalink)  
Old January 29th, 2007, 10:04 AM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Irving_Rivas
Default

Ok, let me see if I can explain clearly.

"the place where you write store the characters" is, for example:

In MS word you use a textbox.
In a small C++ application you store strings (character arrays) in a char * variable.

But the variables are limited to a 255 characters capacity. So where should I store the stuff the user writes before saving?

It's not the world you live in, it's the people you live with.
Reply With Quote
  #4 (permalink)  
Old January 30th, 2007, 08:29 AM
Registered User
 
Join Date: Jan 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Friends,

Actually, there is alot work already done when you use Microsoft Foundation Classes in visual C++. You cannot find the variable that hold your typed chars. But it must exists or there will not be no program peeking other programs' data. You should consult sourceforge.net or orther open source sites for text editior program code.

Best Regards,
Francesco Andrio
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Text editor surendran PHP How-To 0 October 20th, 2006 12:44 AM
rich text editor anshul Pro PHP 4 April 6th, 2005 09:24 AM
PHP Text editor redcell184 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 9 September 3rd, 2004 09:53 AM
Need a Text Editor surendran Dreamweaver (all versions) 0 August 3rd, 2004 06:52 AM
Rich Text Editor PC User Access 0 June 5th, 2004 04:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.