Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 02-09-2009
Member
 
Join Date: Jun 2009
Posts: 403
How can I create notepad in C++

I am trying to develop a small program to create a notepad in C++. I this possible? Can I create a notepad like GUI in C++? I tried it but the problem is that I am unable to code it for clipboard. How will it work and how to count the lines?
Reply With Quote
  #2  
Old 02-09-2009
Member
 
Join Date: May 2008
Posts: 685
Re: How can I create notepad in C++

Use code something like:

Code:
switch(key)
{
case '\n':
	j++;
	line[j]=i;
	i=1;
	break;
case ' ':
	total_words++;
	break;
case '\t':
	i=line[j]-1;
	gotoxy(i,j);
	cout<<" ";
	break;
}
Reply With Quote
  #3  
Old 02-09-2009
Member
 
Join Date: Nov 2008
Posts: 1,054
Re: How can I create notepad in C++

For creating such an interface use VC++. Its the best for GUI's. Visual C++ is Microsoft's IDE product for the C, C++, and C++/CLI programming languages. Visual C++ 2008 provides a powerful and flexible development environment for creating Microsoft Windows?based and Microsoft .NET?based applications. You can refer to this guide to know more about Visual C++.
Reply With Quote
  #4  
Old 02-09-2009
Member
 
Join Date: Nov 2008
Posts: 996
Re: How can I create notepad in C++

Use wxWidgets to create Notepad. wxWidgets lets developers create applications for Win32, Mac OS X, GTK+, X11, Motif, WinCE, and more using one codebase. It can be used from languages such as C++, Python, Perl, and C#/.NET. Unlike other cross-platform toolkits, wxWidgets applications look and feel native. This is because wxWidgets uses the platform's own native controls rather than emulating them. It's also extensive, free, open-source, and mature.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How can I create notepad in C++"
Thread Thread Starter Forum Replies Last Post
Notepad 2 vs Notepad ++ Adamya Windows Software 3 21-07-2011 02:47 AM
Notepad is not responding Flicker Windows Software 4 01-04-2010 03:10 AM
How to Use Notepad to Create a Log File neonxgenesis Windows Software 3 17-11-2009 08:25 AM
VB.NET create Notepad File? MandarM Software Development 3 18-02-2009 08:08 PM
Notepad in Firefox Jackie Customize Desktop 2 25-11-2008 05:15 PM


All times are GMT +5.5. The time now is 05:22 AM.