titbits from the world less travelled

Archive for January, 2010

comparing two systemtime variables using filetime in vc++

lets take a look at how to compare two systemtime variables but using Filetime to do so. We make use of the utility method CompareFiletime to do this.

1) store the systemtime in a variable
2) convert it into filetime. Use this method
SystemTimeToFileTime(&systemtime1, &filetime1)

SystemTimeToFileTime(&systemtime2, &filetime2)
3) Compare the filetimes using the method
CompareFileTime(&filetime1, &filetime2) > 0

4) finally convert the filetime to systemtime using the method
FileTimeToSystemTime(..)

posted by admin in c++, msdn, windows and have No Comments

Firefox deleting a single site history you have visited

I came across this pretty cool feature on firefox 3.6. It helps to delete a single website you have visited. The difference here is that, in the previous versions, you couldn’t delete a particular website/domain you have visited. This used to be pretty annoying but with this feature you can do it. Here’s how you do it:

1) Goto History
2) Show all history
3) Click on a particular site you have visited
4) Right click and then select forget about this site.
5) This will delete all the history you have stored on that computer, for a single website or domain name only.

Tags:
posted by admin in Uncategorized and have Comments (2)

Installed firefox 3.6 – check out its speed

firefox_speed

Tags:
posted by admin in Uncategorized and have No Comments

Check out this site: www.downloadsquad.com

posted by admin in Uncategorized and have No Comments

Reading a 64bit key from a 32bit application

The easiest way to do this would be to use the option KEY_ENUMERATE_SUB_KEYS when you open the registry key. This option would read both the 32bit and the 64bit registry keys.

posted by admin in c++, windows and have No Comments

[VC compile error] uuid.lib : fatal error LNK1103: debugging information corrupt; recompile module

This happens usually because in your visual studio vc6 compiler options you would have set the library files path to “Microsoft platform SDKs” , which uses the newer library files. Goto the option again and then set to “Microsoft SDKs” which is set to older SDK. this will help to solve your problem.

posted by admin in c++, visual studio and have No Comments

Google nexus phone video

posted by admin in Uncategorized and have No Comments