Click here to Skip to main content
15,890,670 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Commented data file? Pin
knapak9-Jun-05 13:27
knapak9-Jun-05 13:27 
GeneralRe: Commented data file? Pin
Christian Graus9-Jun-05 13:28
protectorChristian Graus9-Jun-05 13:28 
GeneralRe: Commented data file? Pin
Tom Archer9-Jun-05 16:11
Tom Archer9-Jun-05 16:11 
Generaldir work CDatabase and CFileDialog Pin
Pasquale829-Jun-05 9:17
Pasquale829-Jun-05 9:17 
GeneralRe: dir work CDatabase and CFileDialog Pin
Tom Archer9-Jun-05 16:15
Tom Archer9-Jun-05 16:15 
GeneralMaking a C++ DLL to be used form VB - Static Question Pin
CimTaurus9-Jun-05 9:15
CimTaurus9-Jun-05 9:15 
GeneralRe: Making a C++ DLL to be used form VB - Static Question Pin
Chris Losinger9-Jun-05 9:47
professionalChris Losinger9-Jun-05 9:47 
GeneralCDO/MAPI sending problem Pin
vineas9-Jun-05 8:43
vineas9-Jun-05 8:43 
A project I'm working on has me updating some app generated e-mail code (that used Simple MAPI) so that it can send image attachments that show up inline as part of an html message instead of simply as attachments. I used CDO for this, which worked great once I could finally figure out how it all worked (worst part is most of the MSDN samples were usually missing one key component to get it to work ... grr). I'm almost done, except for one little problem. What I want to do is open the generated e-mail up with the default e-mail program, to allow the user to change the message as they want and put in recipients. But, using the IMessage's Send function, the call will fail unless there is a recipient specified ... in other words, it will only send the message silently, without user interaction.

With simple MAPI, I can simply call SendMail with the MAPI_LOGON_UI|MAPI_DIALOG flags, and it opens up the e-mail in the e-mail client. This works great, and is what the old code used to do. Too bad I can't use this function with the IMessage message.

From what I can see from sample source and other documentation, with pretty much any other language supported by microsoft, the Send function I'm calling has a ShowDialog parameter that allows you to pop-up the dialog like I want it to (I'm so sick of seeing VB examples like this I could just puke). Unfortunately, this function is not available with C++, it only has the one version that takes no parameters.

One line of thought I had was to save the email out as a temporary file, then send open it with a shell command .. but that won't work quite right either, the generated e-mail can be saved as a .eml file, which opens up in Outlook Express ... not the default e-mail program, and even that doesn't quite work the way I intend either.

I've been searching through MSDN and the web for over a day now, and because the functionality is there for other languages, I know there has to be a setting or field I can set to allow this ... but I can't find anything. Anyone go through something similar, or have some other place I can look?

-----
In the land of the blind, the one eyed man is king.
Generalloading a bitmap from file Pin
bkphat9-Jun-05 8:37
bkphat9-Jun-05 8:37 
GeneralRe: loading a bitmap from file Pin
Dominik Reichl9-Jun-05 8:48
Dominik Reichl9-Jun-05 8:48 
GeneralRe: loading a bitmap from file Pin
Budric B.9-Jun-05 8:51
Budric B.9-Jun-05 8:51 
Questionhow to count print outs Pin
Ajay Nikam9-Jun-05 8:14
Ajay Nikam9-Jun-05 8:14 
GeneralGet the path to MS Office Pin
Nitron9-Jun-05 8:12
Nitron9-Jun-05 8:12 
GeneralRe: Get the path to MS Office Pin
Kappy9-Jun-05 10:49
Kappy9-Jun-05 10:49 
GeneralRe: Get the path to MS Office Pin
Tom Archer9-Jun-05 16:18
Tom Archer9-Jun-05 16:18 
GeneralRe: Get the path to MS Office Pin
Nitron10-Jun-05 2:42
Nitron10-Jun-05 2:42 
GeneralMenu in child window Pin
PJ Arends9-Jun-05 7:02
professionalPJ Arends9-Jun-05 7:02 
GeneralRe: Menu in child window Pin
James R. Twine9-Jun-05 7:22
James R. Twine9-Jun-05 7:22 
GeneralRe: Menu in child window Pin
PJ Arends9-Jun-05 17:56
professionalPJ Arends9-Jun-05 17:56 
QuestionHow to Create A Shared Folder Pin
f29-Jun-05 6:41
f29-Jun-05 6:41 
GeneralailFreeing memory Pin
laiju9-Jun-05 4:57
laiju9-Jun-05 4:57 
GeneralRe: ailFreeing memory Pin
Cedric Moonen9-Jun-05 5:05
Cedric Moonen9-Jun-05 5:05 
GeneralRe: ailFreeing memory Pin
Budric B.9-Jun-05 5:13
Budric B.9-Jun-05 5:13 
GeneralRead a line from a text file Pin
bkphat9-Jun-05 4:34
bkphat9-Jun-05 4:34 
GeneralRe: Read a line from a text file Pin
toxcct9-Jun-05 5:18
toxcct9-Jun-05 5:18 

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.