Click here to Skip to main content
15,889,992 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem with pointers to pointers in VC++ Pin
watherby3329-Oct-06 10:35
watherby3329-Oct-06 10:35 
QuestionC++/CLI Pin
Demian Panello29-Oct-06 9:04
Demian Panello29-Oct-06 9:04 
AnswerRe: C++/CLI Pin
Mark Salsbery29-Oct-06 9:33
Mark Salsbery29-Oct-06 9:33 
GeneralRe: C++/CLI [modified] Pin
Demian Panello29-Oct-06 10:28
Demian Panello29-Oct-06 10:28 
AnswerRe: C++/CLI Pin
Christian Graus29-Oct-06 11:22
protectorChristian Graus29-Oct-06 11:22 
Questionactivate Edit - Copy/Paste Pin
Tara1429-Oct-06 6:16
Tara1429-Oct-06 6:16 
AnswerRe: activate Edit - Copy/Paste Pin
PJ Arends29-Oct-06 10:17
professionalPJ Arends29-Oct-06 10:17 
QuestionMAPI - IAddrBook,calling to function Address(..) to open address book fails Pin
YaronNir29-Oct-06 4:18
YaronNir29-Oct-06 4:18 
Hi all,

this is the code i am using to open the address book (using MAPI)

USES_CONVERSION;

LPADRLIST     lpadrlist  = NULL;
LPTSTR    rglpszDestTitles[1];
ULONG    rgulDestComps[1];
ULONG    ulUIParam         = 0;
rglpszDestTitles[0]        = (LPWSTR) T2A(_T("To"));
rgulDestComps[0]           = MAPI_TO;
ADRPARM  adrparm;
adrparm.cbABContEntryID    = 0;
adrparm.lpABContEntryID    = NULL;
adrparm.ulFlags            = (DIALOG_MODAL | AB_SELECTONLY | AB_RESOLVE);
adrparm.lpReserved         = NULL;
adrparm.ulHelpContext      = 0;
adrparm.lpszHelpFileName   = NULL;
adrparm.lpfnABSDI          = NULL;
adrparm.lpfnDismiss        = NULL;
adrparm.lpvDismissContext  = NULL;
adrparm.lpszCaption        = (LPWSTR) T2A(_T("Select Outlook contacts"));
adrparm.lpszNewEntryTitle  = (LPWSTR) T2A(_T("For this dialog"));
adrparm.lpszDestWellsTitle = (LPWSTR) T2A(_T("Selected Recipients:"));
adrparm.cDestFields        = 1;
adrparm.nDestFieldFocus    = 0;
adrparm.lppszDestTitles    = rglpszDestTitles;
adrparm.lpulDestComps      = rgulDestComps;
adrparm.lpContRestriction  = NULL;
adrparm.lpHierRestriction  = NULL;
HRESULT hr = (pAdrBook->Address( &ulUIParam, &adrparm, &lpadrlist));


the address book opens ok, but sometimes, it failed and the hresult is 0x8007000E....
haven't seen any documentation on this error, or what it means....

can any1 help?

thanks

Yaron

Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp

don't forget to vote Smile | :)

AnswerRe: MAPI - IAddrBook,calling to function Address(..) to open address book fails Pin
PJ Arends29-Oct-06 7:18
professionalPJ Arends29-Oct-06 7:18 
QuestionC++ Pin
KOKEMO29-Oct-06 1:31
KOKEMO29-Oct-06 1:31 
AnswerRe: C++ Pin
Michael Dunn29-Oct-06 1:59
sitebuilderMichael Dunn29-Oct-06 1:59 
Questionsetting symbolic name to functions and methods Pin
mt_samiei28-Oct-06 20:21
mt_samiei28-Oct-06 20:21 
QuestionWhich edit box was clicked? [modified] Pin
Oliver12328-Oct-06 19:20
Oliver12328-Oct-06 19:20 
AnswerRe: Which edit box was clicked? Pin
PJ Arends28-Oct-06 21:25
professionalPJ Arends28-Oct-06 21:25 
GeneralRe: Which edit box was clicked? Pin
Oliver12329-Oct-06 13:18
Oliver12329-Oct-06 13:18 
AnswerRe: Which edit box was clicked? Pin
Mark Salsbery29-Oct-06 14:28
Mark Salsbery29-Oct-06 14:28 
QuestionOwner Drawn Pin
BlitzPackage28-Oct-06 13:28
BlitzPackage28-Oct-06 13:28 
AnswerRe: Owner Drawn Pin
Christian Graus28-Oct-06 13:37
protectorChristian Graus28-Oct-06 13:37 
GeneralRe: Owner Drawn Pin
BlitzPackage28-Oct-06 13:41
BlitzPackage28-Oct-06 13:41 
GeneralRe: Owner Drawn Pin
Jörgen Sigvardsson29-Oct-06 9:17
Jörgen Sigvardsson29-Oct-06 9:17 
AnswerRe: Owner Drawn Pin
peterchen29-Oct-06 4:18
peterchen29-Oct-06 4:18 
QuestionRasSetEntryProperties runtime error. Access Violation Pin
cfo5ter28-Oct-06 11:11
cfo5ter28-Oct-06 11:11 
AnswerRe: RasSetEntryProperties runtime error. Access Violation Pin
PJ Arends28-Oct-06 11:46
professionalPJ Arends28-Oct-06 11:46 
AnswerRe: RasSetEntryProperties runtime error. Access Violation Pin
PJ Arends28-Oct-06 11:56
professionalPJ Arends28-Oct-06 11:56 
GeneralRe: RasSetEntryProperties runtime error. Access Violation Pin
cfo5ter28-Oct-06 12:40
cfo5ter28-Oct-06 12:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.