AfxTrace trick!

Ever felt the need for a simple thing like, you print something to developer studio output window and when you double click on that line it takes us to the place from where this was output. For eg: You have an unknown exception and you put a trace statement which prints the file name and […]
Continue reading…

 

Something about a Toolbar!

Did you know that you can have a toolbar for any window? Have you seen nice little toolbars just above a combo box with buttons to sort ascending or descending and some other stuffs. Development studio has such controls. You can also do the same, just do some digging with respect to toolbars and I […]
Continue reading…

 

Using SearchPath!

If you want to search for file in a given path use SearchPath API. Read MSDN documentation on this function. If no path is given while calling SearchPath API, it searches in the following order(as per MSDN). The directory from which the application loaded. The current directory. The Windows system directory. Use the GetSystemDirectory function […]
Continue reading…