MAPI via Visual Studio 2005
-
I have a serious problem, I had a project with mapi implementation on VS6. now i am trying to implement it on VS2005, i am starting to get error of include files such as edk.h and other mapi files. when i copy the files from the include dir of VS6 to VS2005, the compilation works ok but the link fails. when i copy the lib files from the VS6 project to VS2005, i can new linking error that talks about standard library....i can not solve this linking errors via VS2005..... any suggestions? thanks in advanced Yaron
Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)
-
I have a serious problem, I had a project with mapi implementation on VS6. now i am trying to implement it on VS2005, i am starting to get error of include files such as edk.h and other mapi files. when i copy the files from the include dir of VS6 to VS2005, the compilation works ok but the link fails. when i copy the lib files from the VS6 project to VS2005, i can new linking error that talks about standard library....i can not solve this linking errors via VS2005..... any suggestions? thanks in advanced Yaron
Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)
YaronNir wrote:
...i can new linking error that talks about standard library...
What linker error, and on what file?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
YaronNir wrote:
...i can new linking error that talks about standard library...
What linker error, and on what file?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
well, i've managed to solve all the errors :) i have an other problem.. i open the address book using this following code:
LPADRLIST CMyClass::_OpenAddressBook(IAddrBook* pAdrBook)
{
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); 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)); if (FAILED(hr)) { return NULL; } return lpadrlist;
}
problem is the addres book doesn't open modal :( can you help? thanks again Yaron
Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)
-
well, i've managed to solve all the errors :) i have an other problem.. i open the address book using this following code:
LPADRLIST CMyClass::_OpenAddressBook(IAddrBook* pAdrBook)
{
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); 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)); if (FAILED(hr)) { return NULL; } return lpadrlist;
}
problem is the addres book doesn't open modal :( can you help? thanks again Yaron
Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)
YaronNir wrote:
problem is the addres book doesn't open modal
How are you verifying this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
YaronNir wrote:
problem is the addres book doesn't open modal
How are you verifying this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
DavidCrow wrote:
How are you verifying this?
what do you mean? the address book opens, but i can restore to the window which opened it...meaning it is not modal! try to open new email via outlook, and press on 'To' the address book will open modal.... can u help? thanks Yaron
Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)