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?
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?
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; }
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++.
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.
Bookmarks