View Single Post
  #1  
Old June 16th 06, 06:07 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 9
Default Redemption not working :(

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....

Ads