Skip to content


So, which company do you think is most innovative when it comes to filing patents????

screen-shot-2010-03-08-at-11-52-59-am

Posted in Uncategorized.


Using TinyXML to parse a XML in C++

Recently I had an opportunity to use TinyXML to parse an XML. You can know more about it here:
http://www.grinninglizard.com/tinyxml/

First thing you need to do is download their libraries and compile it. Then only you can start using their code.

Dont forget to include the <#include "tinyxml.h">

//load the document you need to parse
TiXmlDocument document(”Test.xml”);
document.LoadFile();
// // retrieve the root element
TiXmlElement* root = document.FirstChildElement( “personalInfo” );
//if the root element exists then only proceed to the next element
if ( root )
{
//darshan
TiXmlElement* child = document.FirstChildElement( “name” );
if(child)
{
//do some data manipulation here
//this will retrieve my name “darshan” here
const char* sDesc = root->GetText();
}
}

This way you can go about parsing the XML from one child element to the next

Posted in XML.

Tagged with .


Facebook does it again..passes yahoo but for number two spot.

check out the post here
http://blog.compete.com/2010/02/17/we%E2%80%99re-number-two-facebook-moves-up-one-big-spot-in-the-charts/

Posted in Uncategorized.


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 in c++, msdn, windows.


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.

Posted in Uncategorized.

Tagged with .


Installed firefox 3.6 – check out its speed

firefox_speed

Posted in Uncategorized.

Tagged with .


Check out this site: www.downloadsquad.com

Posted in Uncategorized.


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 in c++, windows.


[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 in c++, visual studio.


Google nexus phone video

Posted in Uncategorized.

Tagged with .




Bad Behavior has blocked 30 access attempts in the last 7 days.