Click here to Skip to main content
15,903,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Richard MacCutchan17-Jan-15 5:49
mveRichard MacCutchan17-Jan-15 5:49 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
jschell18-Jan-15 6:38
jschell18-Jan-15 6:38 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Mike Nordell2-Feb-15 10:31
Mike Nordell2-Feb-15 10:31 
QuestionDetours : how to hook QT applications ? Pin
jeff614-Jan-15 23:56
jeff614-Jan-15 23:56 
AnswerRe: Detours : how to hook QT applications ? Pin
Daniel Pfeffer15-Jan-15 0:25
professionalDaniel Pfeffer15-Jan-15 0:25 
GeneralRe: Detours : how to hook QT applications ? Pin
jeff615-Jan-15 0:46
jeff615-Jan-15 0:46 
GeneralRe: Detours : how to hook QT applications ? Pin
Daniel Pfeffer15-Jan-15 2:17
professionalDaniel Pfeffer15-Jan-15 2:17 
GeneralRe: Detours : how to hook QT applications ? Pin
jeff617-Jan-15 6:14
jeff617-Jan-15 6:14 
GeneralRe: Detours : how to hook QT applications ? Pin
Andy You15-May-22 2:41
Andy You15-May-22 2:41 
QuestionChange scrollbar style Pin
_Flaviu14-Jan-15 9:05
_Flaviu14-Jan-15 9:05 
AnswerRe: Change scrollbar style Pin
CPallini14-Jan-15 10:07
mveCPallini14-Jan-15 10:07 
GeneralRe: Change scrollbar style Pin
jeron114-Jan-15 10:24
jeron114-Jan-15 10:24 
GeneralRe: Change scrollbar style Pin
enhzflep14-Jan-15 14:10
enhzflep14-Jan-15 14:10 
GeneralRe: Change scrollbar style Pin
_Flaviu14-Jan-15 20:16
_Flaviu14-Jan-15 20:16 
QuestionBest way to get a program to send emails Pin
Anorexic Tribble11-Jan-15 11:44
Anorexic Tribble11-Jan-15 11:44 
AnswerRe: Best way to get a program to send emails Pin
Richard Andrew x6411-Jan-15 12:09
professionalRichard Andrew x6411-Jan-15 12:09 
AnswerRe: Best way to get a program to send emails Pin
CPallini11-Jan-15 21:48
mveCPallini11-Jan-15 21:48 
GeneralRe: Best way to get a program to send emails Pin
Anorexic Tribble12-Jan-15 3:48
Anorexic Tribble12-Jan-15 3:48 
GeneralRe: Best way to get a program to send emails Pin
enhzflep12-Jan-15 4:24
enhzflep12-Jan-15 4:24 
JokeRe: Best way to get a program to send emails Pin
jeron112-Jan-15 4:55
jeron112-Jan-15 4:55 
GeneralRe: Best way to get a program to send emails Pin
enhzflep12-Jan-15 4:59
enhzflep12-Jan-15 4:59 
GeneralRe: Best way to get a program to send emails Pin
David Crow12-Jan-15 5:12
David Crow12-Jan-15 5:12 
GeneralRe: Best way to get a program to send emails Pin
enhzflep13-Jan-15 9:01
enhzflep13-Jan-15 9:01 
GeneralRe: Best way to get a program to send emails Pin
CPallini12-Jan-15 5:04
mveCPallini12-Jan-15 5:04 
AnswerRe: Best way to get a program to send emails Pin
Dar Brett12-Jan-15 5:31
Dar Brett12-Jan-15 5:31 
I'm not really familiar with the stuff you're using, and I haven't used C++ for a few years, but from what I remember any functions in the Windows API that changed between character types depending on precomiler definitions had other similarly named functions.

I remember the function to show a message box was called MessageBox(), and internally it mapped to either MessageBoxA() or MessageBoxW() depending on precompiler definitions.

Maybe you'll find something similar with your function for sending the mail?

Then depending on how speedy you need it to run you could write some code to attempt the other version of the function if the first try failed, or if you need it faster try to detect what the MAPI client needed you to use and have some kinda fancy interface, function pointer, etc to convert your text and send it using the right format.

Alternatively, you could try using .Net from C++ to use all of the email junk built into that - though I'm kinda assuming you're avoiding needing to install the entire .Net framework alongside your application.

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.