If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

How to get unread mail count of GMail in VC++

Hello
I want to get unread mail count in VC++. I have done it in C#.Net with following code -
Collection<UnreadMails> GetNewMails()
{
WebRequest webGmailRequest = WebRequest.Create(@"https://mail.google.com/mail/feed/atom");
webGmailRequest.PreAuthenticate = true;

XmlDocument UnreadMailXmlDoc = new XmlDocument();
UnreadMailXmlDoc.LoadXml(sbUnreadMailInfo.ToString());
XmlNodeList UnreadMailEntries = UnreadMailXmlDoc.GetElementsByTagName("entry");
}
So by using url "https://mail.google.com/mail/feed/atom" and provide login credential, i am able to get a XML file which contain unread mail information.