I have been using a utility function in my TaskbarExt application for years to get the current Desktop ListView window handle (SysListView32 to be exact) to show/hide the icons depending on user preferences. This has worked well for years, but recently I enabled the Windows Desktop wallpaper rotation, and I noticed that this function randomly […]
Archive for the ‘Visual C++’ Category
Unicode Programming In Microsoft Visual C/C++
If you program Unicode applications using Microsoft Visual C/C++ compiler, then you most probably use the TCHAR strings. While using TCHAR strings is very easy, one of the most common problem for me, after a years of ANSI string experience, is to find a correct C/C++ string function to do the same job as I […]
Command Line Arguments Processing in Win32 Application
It’s common for Windows executable to get and process the additional parameters from the command line. This way you can pass any custom actions when launching an application i.e. open a particular file, print a file, control the application visibility state, etc. If you are working on C/C++ console application, then you can easily get […]
Passing pointer of class member functions to Windows API
I was developing a small utility in C++, and was using the classes to make my program easy to read and maintain (we all know OOP is better than structured approach most of the time). In one of my class member function, I needed to create a new Window and thus need to populate the […]
Embedding DLL and binary files in the Win32 Executable
Embedding DLL and binary files in the Executable applications Though for most of the cases, it’s recommended keep the resources and other libraries separate from the main executable. This makes the main application executable size small, and thus that application will take less memory on load and will load/unload the external resources as required. Yet […]