Posts

Showing posts from October, 2009

Customize Outlook message inbox View VC++ code

Here I am using VC++ code and OUTLOOK object model to add new column or field in outlook inbox message view. Like other fields ( importance,subject date ....) i am going to add new custom field. **Note...I tried a lot to add a ICON type value using bitmap like read unread mail in that column bt i couldnt... In simple I used a text type value for this field: Bellow two functions written : Over view: MicroSoft stores the Outlook view in XML form just need to get the XML and modify it. a lots of security and other issue involved here to know morw about it go to Creating Custom Views artical of microsoft and get alot: CConnect::AddNewViewField() { Outlook::_NameSpace * pNamespacePtr; MAPIFolder *pFolderptr; View * pViewPtr; BSTR strXMl; BSTR modifiedXMLSTr; m_spApp->GetNamespace(_T("MAPI"),&pNamespacePtr); pNamespacePtr->GetDefaultFolder(olFolderInbox , &pFolderptr); pFolderptr->get_CurrentView(&pViewPtr); pViewPtr->get_XML(&strXMl); modifi

My different mode of poetry

Hi Evry one...I dont know why the hell I am going to write something here....but i love it 2 spread to all my frnd as a diwali wish......actally listen story wat happened... DAy - FRIDAY - 16-10-2009 Before 1 day to diawali came to my office n started orkut i sawa los of messages from my friend they -wre wishing me DIWALI...then i started replaying all of them and dere was sm other thing lk a line of poem running in my mind......then i thought i sud write 2 line in a different style to wish dem HAppy diwli....and i started writing but thing go beyound the 2 line i made it sm thng diff........................so here i am going to write.....for all my fiends....... "Office ke kaam se tha pareshan. Kam khtam hone ka leta nahi naam, lyf thi boring n dil hairan, baar baar khayalon me kuch tha shayed sayed ek chehra ya shyed koi naam, System ko liye baithe the, man nahi kar raha tha karne ka kaam, kuch to jarur tha mere around, mere liye nahi tha samjhana aasan, arey 1 s

How to convert and print full system TIME string in GMT or UTC

SYSTEMTIME tempSYSTIME; SYSTEMTIME stLocal; FILETIME LocalTime; int TmpMeetingInfoLength = 0; TCHAR tempStartTimeStr[MAX_PATH] ; TCHAR strDateandTime[MAX_PATH]; TIME_ZONE_INFORMATION info; GetLocalTime(&stLocal); GetTimeZoneInformation(&info); LONG tmpval = info.Bias ; if(info.Bias<0) tmpval = info.Bias * -1; LONG hr , min ; hr = tmpval /60; min = tmpval % 60; _TCHAR str[100]; _stprintf(str, _T(": %02d-%02d-%02d %02d:%02d:%02d GMT%s%02ld:%02ld"),stLocal.wYear ,stLocal.wMonth, stLocal.wDay, stLocal.wHour, stLocal.wMinute ,stLocal.wSecond , (info.Bias > 0 && info.Bias != 0 ) ?_T("-"): _T("+"),hr , min); OUTPUT : "YYYY-MM-DD HH:MM:SS GMT+/- HH:MM" eg: "2009-10-10 23:15:01 GMT +05:30"