Memory reallocation generated by string concatenations can create performance bottlenecks. .NET has System.Text.StringBuilder, JavaScript has Array.join, and we have string::reserve.
This library provides a simple set of classes for creating GUIs. It uses only the Win32 API with some common controls. The development is at the beginning and many changes are to be done.
This class uses keybd_event and CreateProcess to create a script processor and executor. The script can be used for automation of daily tasks such as opening and checking mail accounts, automating the functionality of software etc. This will work with any app which can take input via keyboard.
The Win API cannot access inifile in UNICODE, sometimes, we may want to add some wide characters into INI file, so I wrote a class to access INI file in UNICODE
If you demand the most possible control of your code, if you like to force Windows looking your way, and if you are lazy enough, this tutorial is exactly for you.
Other articles describe replacements for MessageBox() with extra buttons for "Yes to All" and "No to All", but you still have to write the code to handle those buttons. This article presents a class that does all the work for you.
Ever wanted a program which could run another one from user selected directories recursively, complete with STDIO Redirection for console programs, program timeout settings, etc.? What's more, you can easily modify the source to match your own needs. Kamal Shankar presents such a quick tool.
This DLL and the test MFC application supplied demonstrates how efficiently large number of words can be dealt with lightning fast - for wild card matching and checking existence. This DLL is just the all-in-one tool that a word game writer needs - one who needs a very fast dictionary facility.
This program will take all lettlers from a given file and turn them into a binary code defined by me. Attention, it only encrypts keys that are on you keyboard and it is not case sensitive.
A picture based skin system for MFC that allows the user to customise their dialogs. The system is demonstrated by presenting a fully functioning MPEG decoder application.
Writing a high performance server that runs on Windows NT and uses sockets to communicate with the outside world isn't that hard once you dig through the API references. What's more, most of the code is common between all of the servers that you're likely to want to write.
To maintain performance a socket server shouldn't make blocking calls from its IO threads. This article builds on the previous one to add a business logic thread pool to our example server.
When a server has to deal with lots of short lived client connections, it's advisable to use the Microsoft extension function for WinSock, AcceptEx(), to accept connections.
This article describes, in simple terms, how to translate three dimensional co-ordinates into the two dimensional co-ordinates to be displayed on a screen
This source code uses the advanced IOCP technology which can efficiently serve multiple clients. It also presents some solutions to practical problems that arise with the IOCP programming API, and provides a simple echo client/server with file transfer.
The NotifyIcon Component will display an icon in the status bar notification area, which you can use as notiification purpose to alert users that an action or event has occured.
Simply set the time on the tool for the machine you wish to shut down (24 hrs), choose whether to log off, reboot or shutdown, or power off (ATX main boards only), and click Hide. It has been tested on Win9x/ME, WinNT/2000/XP.
This article explains how to generate resolution independent versions of 3D meshes rendered by OpenGL/MFC programs, i.e. how to export the rendering results to vectorial formats such as encapsulated postscript (EPS) and Windows enhanced metafile (EMF) formats. The main goal consists of being able to
This addin provides some useful functions for editing source code: change selection case to upper case, change selection case to lower case, capitalize selection and conver spaces in a selection to TABs.
Provides built-in graying, rotating, shearing, resizing, blurring, sharpening, flipping, negating and color replacement to CBitmap as well as support for user-defined processing plug-ins
The CMenu class is a great help when it comes to manipulating menus, but unfortunately it doesn't implement serialization. CSerializableMenu is a subclass of CMenu that provides serialization support.
Shows how to customize the Microsoft WebBrowser control in a dialog based app to allow custom context menus, message boxes, windows, modal dialogs and C++ function calls from JavaScript to your application using window.external.
Image Control for viewing most common image formats with advanced features included (Import Image, Preview, Resize, Position, Pan, Zoom, Export Image, Extract Resource Icon).
This article demonstrates how to create a Task Manager in MFC which lists all the processes running in the system along with their process details and version information.
Firewall-Hook driver is a completely unknown method to develop simple packet filtering applications. With this article, I want to tell you how this driver works and what you need to do to use it in your applications.
This application is just a simple simulator but its ability is that u can simply add much more properties to ur mobile and the interface and the source code are so separate so u can change the interface with just a low cost!!!
This article describes an asynchronous pluggable protocol implementation to support the data: protocol, as described in RFC 2397, in Internet Explorer.
A discussion of the OS menu object from a beginner's viewpoint. I take you through the basics to a more advanced understanding of menus and how to interact with them from code.
A re-usable calculator custom control which works and looks like a hand held calculator, which can be used in any MFC application by simply adding a cpp and a h file to the project (no resource file dependencies).
A class derived from CListCtrl that allows edit controls, combo boxes, check boxes, date pickers, and color pickers to be inserted into or removed from particular cells extremely easily. The inserted 'controls' are not CWnd-derived.
At times, we need to query NTSTATUS code lookup through FormatMessage function, this is not so handy. So I decided to write a NTSTATUS error code lookup application.
This article is based on a pre-release version of Microsoft Visual Studio 2005, formerly code-named “Whidbey”. All information contained herein is subject to change.
This article discusses how an application can apply visual effects to the desktop, by copying desktop contents, applying effects on it and then re-displaying it.
Whidbey is a major component of Microsoft Visual Studio .NET suite. The .NET version of Visual Basic is a new improved version with more features and additions. After these new additions, VB.NET qualifies to become a more smarter approach for the software developers.
Neural networks are typically associated with specialised applications, developed only by select groups of experts. This misconception has had a highly negative effect on its popularity. Hopefully, the FANN library will help fill this gap.
ASP.NET tree control is a Custom Control (.ascx) that builds a tree structure. All you have to do is to use two methods of the control. The AddNodeDiv which will add the Node and BuildTree which will build it.
This freeware allows to edit a Windows Resources File (*.rc) and to produce a file named 'version.h' containing several string constants (#define). It can also synchronize a RC file and version.h with the Classbuilder Master Header File.
Handling complex control interactions when edit controls are involved can lead to problems when EN_CHANGE notifications are generated by the application actually changing the control values. To avoid having to handle EN_CHANGE notifications from CEdit and CRichEdit, this article shows how to derive
This article presents all you need to implement your own secure protocol using variable keysize RSA encryption/decryption, digital signing, multi precision library, Diffie-Hellman key exchange, Rijndael, and more. Everything is converged into a secure IOCP client/server chat server.
This article describes how to use the Windows Message WM_COPYDATA if one of the communicating apps is a 32-Bit-app, the other one a 16-bit app. It's really easy, but as far is I know, there has been no detailed description of this problem up till now.
The article describes C++ coding styles and practices to be followed to develop robust and reliable code that is easily comprehended and maintained by other developers.
A C++ implementation of the Windows FileSystemObject object. It wraps and extends the standard FileSystemObject interfaces (methods/properties). Now, C++ developers can manipulate folders and files without their own Win32 API code. They can take advantage of the well-tested Windows FileSystemObject.
CAsyncSocketEx is an MFC-less replacement for CAsyncSocket which does also offer a flexible layer system. With the layer class CAsyncProxySocketLayer, you can connect through proxy servers.
This article presents a new socket wrapper class specifically designed for the WinCE (PokcetPC) platform that solves the issues of asynchronous notifications and more.
Provides a class capable of providing a CFile sytle interface with no MFC dependecies and more importantly providing the ability to read/write if full overlapped IO mode with a user defined callback between each segment read/write.
The article lets you to change the partition/drive name which Windows 2000, NT and Windows XP have assigned. It also includes code for colored Progress Controls.
In This User Control 10 Types Of Charts are Created Dynamically Depending upon type of Chart Selected by User That Chart is Displayed .It also Changes BackColor and ForeColor of Chart
This article show the creation of a simple HitChecking class that allow you to check the if an object in the plane has been hit. It uses the GDI API, implementing some of the region functions.
This article describes two classes, one for splitting a file into smaller chunks and another for merging smaller files into one. Also there is a utility written using these classes.
Cluster is a term meaning independent computers combined into a unified system through software and networking. Clusters are typically used for High Availability for greater reliability or High Performance Computing to provide greater computational power than a single computer can provide.
A simple applet that lets you preview how various font and background colours interact. Has the added ability of being able to pick any colour from the screen.
This article is intended to explain the concept behind connection points with a clear practical example, which will demonstrate an in-process COM server and an MFC client that uses the server.
A combo box that consists of both read-only items as well as editable items that depending on selection, locks and unlocks the edit field of the combobox
In this article, an improved version of a new networking protocol for distributed or parallel computations is presented. In common, it is suitable just for fast, reliable and featureful interchange of small messages. The protocol's implementation and demo project are provided.
Controlling the client view minimum size with WM_GETMINMAXINFO in MFC can be tricky. This article proposes an elegant and reusable solution to this problem.