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

C / C++ / MFC

 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729926-May-11 6:15
Member 29729926-May-11 6:15 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Richard MacCutchan6-May-11 23:01
mveRichard MacCutchan6-May-11 23:01 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729926-May-11 23:11
Member 29729926-May-11 23:11 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Richard MacCutchan7-May-11 0:33
mveRichard MacCutchan7-May-11 0:33 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729927-May-11 2:07
Member 29729927-May-11 2:07 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Richard MacCutchan7-May-11 5:22
mveRichard MacCutchan7-May-11 5:22 
AnswerRe: Problem Opening Email when using InvokeHelper in C++ Pin
barneyman7-May-11 15:23
barneyman7-May-11 15:23 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729928-May-11 6:12
Member 29729928-May-11 6:12 
Hi
The code is based upon this website:
http://repositorium.googlecode.com/svn/trunk/AbstractSpoon/OutlookImpExp/Source/msoutl.cpp

Yes, there is a mistake it should say m_outlook->invokehelper and m_outlook is the name for outlook object which I have called before to start MS Outlook. The next step is to open an email template that is given a template file path and to display this to the user.

I have tried searching MSDN for help, but I can't find any help.

The code I have used is based upon this from the website above:

LPDISPATCH _Application::CreateItemFromTemplate(LPCTSTR TemplatePath, const VARIANT& InFolder)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_BSTR VTS_VARIANT;
InvokeHelper(0x10b, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
TemplatePath, &InFolder);
return result;
}


I have tried passing in NULL for the last parameter as there is no folder involved, but I am guessing on a lot of this because I have no idea what the exact definition of the method in MS Outlook for 0x10a or 0x10b. As I have said I can't find in MSDN any definition for this.

Can you help?
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
barneyman8-May-11 13:04
barneyman8-May-11 13:04 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729928-May-11 22:27
Member 29729928-May-11 22:27 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
barneyman8-May-11 22:37
barneyman8-May-11 22:37 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729928-May-11 22:50
Member 29729928-May-11 22:50 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729928-May-11 23:11
Member 29729928-May-11 23:11 
AnswerRe: Problem Opening Email when using InvokeHelper in C++ Pin
Roger Broomfield9-May-11 1:37
Roger Broomfield9-May-11 1:37 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729929-May-11 2:04
Member 29729929-May-11 2:04 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729929-May-11 2:25
Member 29729929-May-11 2:25 
QuestionWant logic or code for this in c Pin
KIDYA6-May-11 4:08
KIDYA6-May-11 4:08 
AnswerRe: Want logic or code for this in c Pin
CodyDaemon6-May-11 4:18
CodyDaemon6-May-11 4:18 
GeneralRe: Want logic or code for this in c Pin
KIDYA6-May-11 4:30
KIDYA6-May-11 4:30 
AnswerRe: Want logic or code for this in c Pin
Luc Pattyn6-May-11 4:30
sitebuilderLuc Pattyn6-May-11 4:30 
GeneralRe: Want logic or code for this in c Pin
CPallini6-May-11 10:17
mveCPallini6-May-11 10:17 
GeneralRe: Want logic or code for this in c Pin
Luc Pattyn6-May-11 15:30
sitebuilderLuc Pattyn6-May-11 15:30 
QuestionEncrypting the existing file and folder Pin
sarfaraznawaz6-May-11 1:22
sarfaraznawaz6-May-11 1:22 
AnswerRe: Encrypting the existing file and folder Pin
ShilpiP6-May-11 1:42
ShilpiP6-May-11 1:42 
AnswerRe: Encrypting the existing file and folder Pin
Richard MacCutchan6-May-11 3:05
mveRichard MacCutchan6-May-11 3:05 

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.