S
sagar.pes
Hi,
I am developing a small application to sync outlook contacts with
another application. I am doing it in C++ . Here is a small code
snippet that I am using
if( m_Application.CreateDispatch( "Outlook.Application" ) == 0 )
{
AfxMessageBox( "Can't launch Outlook!" );
return;
}
_NameSpace m_NameSpace = m_Application.GetNamespace("MAPI");
ISafeCurrentUser User = m_NameSpace.GetCurrentUser();
CString Address = User.GetAddress();
But the problem i am facing is that the User.GetAddress() causes the
outlook security prompt which I think, should not happen.... Can anyone
pls tell me wat I am doing wrong, plssss
Thank you....
I am developing a small application to sync outlook contacts with
another application. I am doing it in C++ . Here is a small code
snippet that I am using
if( m_Application.CreateDispatch( "Outlook.Application" ) == 0 )
{
AfxMessageBox( "Can't launch Outlook!" );
return;
}
_NameSpace m_NameSpace = m_Application.GetNamespace("MAPI");
ISafeCurrentUser User = m_NameSpace.GetCurrentUser();
CString Address = User.GetAddress();
But the problem i am facing is that the User.GetAddress() causes the
outlook security prompt which I think, should not happen.... Can anyone
pls tell me wat I am doing wrong, plssss
Thank you....