This article shows how to use Unicode in an INI file. Even though we call WritePrivateProfileStringW API function for using Unicode in an INI file, an INI file is not saved as Unicode but saved as ANSI. However, the small code that I show here will let you use that.What does WritePrivateProfileStringW do?
From my experience, I explain that WritePrivateProfileStringW [...]
In GUI applications it is often necessary to prevent the user from being able to carry out some of the actions that the interface offers. This is (often) done by disabling (deactivating) temporarily at run time, groups of controls. This way we often use the state of GUI elements to synchronize the [...]
I spent a couple hours today looking for a simple way to change from one set of menus (file, edit, etc.) to another menu set. I came across this code in MSDN, but I didn’t see anything like it here on CodeProject, so this is my first article post. I hope someone might find it useful.How to Use Create multiple Menu resources in the resource view. The two I will [...]
I have a small project that needed an MRU. I like the way newer applications plug into Windows to show MRU files on the jump list in the taskbar using the SHAddToRecentDocs system function. I wanted flexibility with how the information was persisted, at least being able to use the registry or store its values in the application’s [...]
With this code, you can print directly to the printer using WIN32 API calls and therefore should enable you to print at maximum speed. Additionally, there is code to show how to send Hewlett Packard PCL5 codes to the printer.Using the code Add a form to your project. Add a button to the form. Change the Name property of the [...]