Blog

Older posts, page 13 of 16.

1 comment Win32 API Windows

Forcing just one instance of an Application to execute at a time

When developing a desktop application, it’s often required that only one instance of application should be executable at a time. This is usually implemented in different ways depending on Language/Tools you are using to build the application. Some common techniques used are either using the Mutex or getting a list of active processes and making…

Continue reading Forcing just one instance of an Application to execute at a time
1 comment Win32 API Windows

Restore Notification Area Icon after Explorer Crash

If you are writing any application which adds an icon to the Taskbar notification area, it’s recommend to handle the “WM_TASKBARCREATED” the message sent by explorer. This message is sent by explorer when it’s creating the taskbar. As after crash explorer doesn’t remember the original notification icons, you should handle this message and then re-register…

Continue reading Restore Notification Area Icon after Explorer Crash
HTML & CSS

Page break in HTML pages

Page break in HTML pages   When generating reports directly in the HTML, it’s often required to do a forced page break so that a new sections always prints on a new page. Fortunately, this is very simple with the help of CSS. For this you just need to add the “page-break-before:always” or “page-break-after:always” styles to…

Continue reading Page break in HTML pages

How to fix the "Automation server can't create object" error

In one of my Win32 DLL projects, whenever I tried to add a resource file, I got the “Automation server can’t create object” object. Similar to other errors, this was not very informative. After searching for this error, I found this the common cause of this problem is that Windows Scripting host is corrupt. You…

Continue reading How to fix the "Automation server can't create object" error