CDO programming.

  • Thread starter Thread starter Semut
  • Start date Start date
S

Semut

Hello, everytime I need to start a CDO session, I need to supply witha a
profile name.

like

CDO::_SessionPtr Session("MAPI.Session");
Session->Logon("Outlook","",VARIANT_FALSE,VARIANT_FALSE);

Is the Outlook the default profile for the Outlook? Will it work for all the
Outlook version?

thank you
 
You cannot depend on the default profile being named "Outlook". It might be
but especially in a corporate environment it most likely won't be.
 
Back
Top