Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 22-11-2010, 09:34 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2010
Location: punjab
Posts: 9
Default creating a TEXT EDITOR i.e notepad type application using C


hey guys,i need coding of text editor...i.e notepad type application...can anyone create this using only C not C++....if anyone knows plz post it i really need it
trickr18 is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-11-2010, 10:45 PM   #2 (permalink)
Alpha Geek
 
Join Date: Jan 2007
Location: In your hearts
Posts: 828
Default Re: creating a TEXT EDITOR i.e notepad type application using C

creating GUI apps in C++ is a normal thing, but in C is difficult. But u can use GTK to create texteditor. Also google it u will surely find someting interesting.
abhijangda is offline   Reply With Quote
Old 23-11-2010, 06:09 PM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Sep 2010
Location: punjab
Posts: 9
Default Re: creating a TEXT EDITOR i.e notepad type application using C

guys understand my problem...i have to submit it by 27th nd if i was expected to fing it on google...why wud i prefer querrying here
trickr18 is offline   Reply With Quote
Old 24-11-2010, 09:48 AM   #4 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default Re: creating a TEXT EDITOR i.e notepad type application using C

AFAIK turbo c 3.0 (dinosaur version) does not support windows programming using its default library headers

see: http://stackoverflow.com/questions/3...-using-turbo-c

c windows tutorial: http://pravin.insanitybegins.com/win32/
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.

Last edited by arpanmukherjee1; 24-11-2010 at 09:51 AM. Reason: Automerged Doublepost
arpanmukherjee1 is offline   Reply With Quote
Old 24-11-2010, 10:34 AM   #5 (permalink)
gkbhat.blogspot.com
 
Join Date: Apr 2008
Location: Mangalore/Bangalore
Posts: 103
Default Re: creating a TEXT EDITOR i.e notepad type application using C

Try Qt...Creating a text editor is easy. Try the demos in qt-creator...that might help you
__________________
blogging at http://gkbhat.blogspot.com
gk2k is offline   Reply With Quote
Old 24-11-2010, 06:03 PM   #6 (permalink)
Sami Hyypiä, LFC legend
 
Liverpool_fan's Avatar
 
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
Default Re: creating a TEXT EDITOR i.e notepad type application using C

You may check out this:
GTK+ and Glade3 GUI Programming Tutorial - Part 1
Complete GTK+ Text Editor in Glade and C or PyGTK
__________________
Experience true education in Computer Science - http://www.udacity.com | http://www.coursera.org

Spoiler:
Read before asking / messaging any moderator for any query: FAQ + answers for new members

Read all the sticky threads before asking any type of query. Most basic questions are answered in those.
Don't use forum for chatting. Visit http://webchat.freenode.net/?channels=krow, enter nick and connect.
Liverpool_fan is offline   Reply With Quote
Old 24-11-2010, 07:17 PM   #7 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default Re: creating a TEXT EDITOR i.e notepad type application using C

i once made one dos-based text editor with feature of just creating text files. i wont give away the code but i can give u the idea.

use getch()(assuming that u are using turbo ) to input each character.(to also input carriage return and backspace).
declare a string where the text data is stored.
after each keypress, process the input and do the appropriate actions.
eg. when a backspace is inputted, delete the last character of the string.
add a newline when a carriage return is inputted.
it is easy but may be long.
all the best
nims11 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2