Help programming a text editor

This is a discussion on Help programming a text editor within the C++ Programming forums, part of the General Programming Boards category; I want to program a text editor, but I have no clue where to start. Ive been programming in c++ ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    2

    Help programming a text editor

    I want to program a text editor, but I have no clue where to start. Ive been programming in c++ for about 10 months now, but Ive never done anything as complex as a text editor(ive done a defender game, a program that adds/subtracs/multiplys/divides fractions, and the game of life). Also, Ive never programmed in windows before, but if its possible to do it in dos, that would be good too. If somebody could help me/tell me where to find a tutorial on it, i would much appreciate it

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,903

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    You should be able to write one in "DOS" if you know how to manipulate strings and how to open & save files.

    But, do you really want to write a DOS editor? Maybe it's time to pick-up the Petzold book and jump-into Windows programing.

    It does get tricky in Windows. Besides learning all fo that Windows-overhead stuff, it's not so easy to know where in the text-string the mouse pointer is! You have porportional-spaced fonts and variable font-sizes.

    I started writing a Windows program that required some text-editing... I never finished it. There are some built-in edit boxes and MFC classes that can make it easier, if they work in your application.

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  5. #5
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    But, do you really want to write a DOS editor? Maybe it's time to pick-up the Petzold book and jump-into Windows programing.
    I agree.. petzold specifically address the text editor application and gives example code
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating very simple text editor using c
    By if13121 in forum C Programming
    Replies: 9
    Last Post: 10-19-2010, 05:26 PM
  2. C++ For Text Editor?
    By bmroyer in forum C++ Programming
    Replies: 12
    Last Post: 04-05-2005, 02:17 AM
  3. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 03:49 PM
  4. help about text editor
    By nag in forum C++ Programming
    Replies: 2
    Last Post: 04-24-2003, 11:45 AM
  5. Making a text editor
    By neandrake in forum C++ Programming
    Replies: 5
    Last Post: 02-26-2002, 10:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21