Programming

 

 

Home
Resume
Photo Album
Interests
Programming
Management Arena
Favorites
Downloads
Me !
Guest Book

Software programming is an art form. 

I keep exploring  this fascinating field as part of my daily working life as well as for leisure. Along the way, I've felt the need & have seen many who could use assistance in cutting short the time taken to learn certain topics. 

Through this section, I hope to provide sample applications illustrating key concepts. Please feel free to use the code presented here for your creations.

I wish you success ! Oh ! Please do let me know of improvements you think of.

 

Windows Registry Functions    

(Download Zipped Source Code)

An application illustrating key (pun unintended) registry functions - RegCreateKeyEx, RegSetValueEx, RegCloseKey, RegOpenKeyEx, RegQueryValueEx, RegEnumKeyEx, RegDeleteKey

It simply creates & sets a new registry entry, opens & queries the value back & then deletes it to clean up. Of particular interest here is the recursive deletion function that navigates hierarchies and removes any & all registry entries under the key specified.

Need for the above ? Well, Win 98 allows deletion of subkeys with a simple RegDeleteKey on the parent key whereas Win NT & 2000 do not.

Hopefully, this should get you on the road to exploring the other registry functions. 

 

System Tray Icons

(Download Zipped Source Code)

This is a simple MFC SDI app that creates & displays two system tray icons, illustrates how to programmatically differentiate between them & also how to invoke a pop-up menu on right clicking an icon.

Besides, it elucidates useful tricks like :

* How to ensure an app runs on Windows 95 & above.

* Using a Named Mutex to ensure a single instance of the application is running.

* Using CreateProcess to spawn Notepad with a text file.


Credits -
Thanks to Alexander Federov ! I learnt about system tray icons from his AlexF dialer project on Sourceforge.net of which I am (i think) a member. < yea, i've still gotta optimize the dialers data rate counter :-( >
Must also mention Richard from WebPercept.com, I made the initial SystemTrayIcon app to help him understand tray icons & then polished it for my site.

 

Coming soon - windows sockets.

In my spare time I'm working on an ATL based Messaging application using windows sockets, intended to help teams communicate seamlessly in real time across corporate locations.

Hosted by www.Geocities.ws

1