A Lightweight Implementation of UML Statecharts in C++
This statechart "engine" implements the most commonly used aspects of UML statecharts. All you need to do is define an array of states, and implement event checking and handling methods. Then call the engine when an event occurs. The engine calls your event checking and handling methods in the correct order to figure out what event happened, and tracks the current state. This is a lightweight implementation, which compiles under VC++ 6.0.
A simple window application
Since for almost all windows application you need to create a window and handle its messages, I have decided to write a small tutorial on just how you go about to do that. The application that I have created for this tutorial doesn't do anything fancy, it just sits there on the screen allowing the user to resize and move it.
Adding Icon to the Status Area of Taskbar
Any Visual Basic Programmer have by now added icon to the status area in very simple steps. But doing the same in Visual C++ is not so straight forward. Here I delineate the steps to undertake for putting a status icon on the status area of task bar.
An Automatic Build Incrementer for VC6
Macros that enables Visual C++ developers to automatically increment their application revision numbers on each build.
Breaking Changes in Visual C++ 2005
There are a number of changes that you can expect to see in Microsoft Visual C++ 2005. In this article, I present a number of changes that can already be found in Visual C++ 2005 that you may encounter when upgrading your own programs.
Capturing Window Controls and Modifying their properties
A Spy tool program like MS Spy++ that lets you capture window
controls and modify their properties. Useful for learning
window handles and their properties. This program is useful to
obtain a window handle, caption, class name, style, and size.
Moreover, it facilitates changing caption name, style, and
extended style of victim window control in run-time load.
Coupling a window handle with a data object
This small tutorial will teach you how to use a windows hook to catch the creation of a window in order to couple the window handle with a data object. This is very useful when creating wrapper classes for windows.
Make your owner PE Protector Part 1: Your first EXE Protector
This article was written to provide the better understanding to
people who do not have any experience in this field. I am not
going to describe about PE structure, so I think it was
explained enough in Matt Pietrek's articles in MSDN. I strongly
recommend to read his article before continuing to read this
article if you don't have any previous experience with PE
structure. You could find useful the relevant reference link at
the end of article.
PC clock synchronizing using http protocol
This article describes using Windows Internet API for atomic clock sites connection and synchronization PC clock. Example code is VC++ one but all Internet operations are Win API. So they could be used easy within any program language. For IT students and programmers. Level: middle.
Print Bitmaps you loaded in MFC
I want to share with you a surprisingly simple method of printing bitmaps using MFC/Visual C++. Printing bitmaps is so problematic for so many people. Just when we think that our code is correct, the bitmap still is not getting displayed on paper, and we have yet to figure out why. So many programmers, including myself, have came across this same trouble, but the answer is not really of our wrongdoing, but of something that we are not fully aware of. I want to share with you how I was able to print bitmaps.
Project Line Counter Add-In
The Project Line Counter add-in reports statistics about files in your Visual C++ projects. Line Counter was created in order to demonstrate various programming tools and techniques.
Same Source Code, Different Results
This Article shows how one source code gives diffrent results
by Visual C++ and Borland C++. How and Why it happens All
explained Here.
Template Thread Library
This project demonstrate is two non MFC thread classes, one of them is a template library that can make any member function of any class executed in different thread, without the require to define any static or global function. The other class require inheritance in the same way that CWinThread under MFC work but without any MFC dependency, both classes use "_beginthreadex".
The "Window Tabs" Add-In For Visual C++
Ever wished that you could quickly switch among your open
workspace windows without using the "Windows" menu or
Alt-Tab'bing till you drop? Well, I did. "Window Tabs", the
add-in I wrote for Microsoft Developer Studio, adds a docking
tab bar. Each tab names a windows that's opened in the
workspace. You can switch between the windows by simply
clicking on the tab. The tabs have right-click context menus,
and can quickly show you (via tool-tips) the full path of the
corresponding file.
Unicode to ascii conversion
There might be some circumstances where we'll have necessities
to convert a UNICODE text file to ASCII file. This happens if
the application is pre-written without handling unicode and
there is only one place where we need a UNICODE file to be
handled. This code sample demonstrates conversion of a unicode
file to ASCII type in such circumstances.
Visual C++ Custom Debug Monitor
Easy way to get the same functionality in Microsoft Visual C++ that Visual Basic provides, i.e. to insert into the source code some debug messages and have them displayed at runtime into a separated, dedicated window (...the "Immediate" window in Visual Basic).
Computerworld The most comprehensive source of news and analysis on the technologies and management issues of information technology. ...
subscribe now