gotoxy in a console application in windows

gotoxy! what’s that? gotoxy was one of my favorite functions in turbo c++, it moves the input cursor in a console application/MS-DOS application from one location to another. So is there an equivalent function in a windows console application which does the same? Yes, it’s called SetConsoleCursorPosition. Sample code As always with me here is […]
Continue reading…

 

touch!!

Remember good old unix/linux command called touch, so simple but very useful, it changes the modified and last access time of a file. Ever felt the need for the same in windows, well I did sometime back. There is a function in imagehlp.dll which is called TouchFileTimes. This is how we use it… [sourcecode language=’cpp’]// […]
Continue reading…