Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modeless dialog box not display in center of parent dialog box. Pin
Le@rner15-Apr-09 21:36
Le@rner15-Apr-09 21:36 
GeneralRe: Modeless dialog box not display in center of parent dialog box. Pin
Iain Clarke, Warrior Programmer15-Apr-09 23:01
Iain Clarke, Warrior Programmer15-Apr-09 23:01 
GeneralRe: Modeless dialog box not display in center of parent dialog box. Pin
Naveen16-Apr-09 17:26
Naveen16-Apr-09 17:26 
QuestionHow to get outlook attachment event? Pin
SNI15-Apr-09 20:01
SNI15-Apr-09 20:01 
AnswerRe: How to get outlook attachment event? Pin
Stuart Dootson15-Apr-09 23:02
professionalStuart Dootson15-Apr-09 23:02 
GeneralRe: How to get outlook attachment event? Pin
SNI17-Apr-09 0:37
SNI17-Apr-09 0:37 
GeneralRe: How to get outlook attachment event? Pin
Stuart Dootson17-Apr-09 0:49
professionalStuart Dootson17-Apr-09 0:49 
GeneralRe: How to get outlook attachment event? Pin
Stuart Dootson17-Apr-09 1:06
professionalStuart Dootson17-Apr-09 1:06 
C++ code for the VBA I posted - note that it's pretty much a direct translation...

#import "progid:Outlook.Application" auto_search

int main(int, char**)
{
   try
   {
      CoInitializeEx(0, COINIT_APARTMENTTHREADED);
      Outlook::_ApplicationPtr ol(__uuidof(Outlook::Application));
      Outlook::_MailItemPtr msg(ol->CreateItem(Outlook::olMailItem));

      msg->Subject = "this is my subject";
      
      msg->Attachments->Add("path to the attachment");

      // If execution gets here, the attachment's been added to msg, and you can go on and do other stuff!
      
      msg->Body = "my message";
      
      msg->Recipients->Add("an e-mail address");
      
      msg->Send();
   }
   catch (_com_error& e)
   {
      std::cerr << (char*)e.Description() << std::endl;
   }
   return 0;
}


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionPuzzle about c++ inherent Pin
sharion15-Apr-09 19:08
sharion15-Apr-09 19:08 
AnswerRe: Puzzle about c++ inherent [modified] Pin
_AnsHUMAN_ 15-Apr-09 19:27
_AnsHUMAN_ 15-Apr-09 19:27 
AnswerRe: Puzzle about c++ inherent Pin
ParagPatel15-Apr-09 21:50
ParagPatel15-Apr-09 21:50 
AnswerRe: Puzzle about c++ inherent Pin
Stuart Dootson15-Apr-09 22:51
professionalStuart Dootson15-Apr-09 22:51 
QuestionHow do I remove thousand seperator. Pin
cozyu15-Apr-09 16:06
cozyu15-Apr-09 16:06 
AnswerRe: How do I remove thousand seperator. Pin
Stuart Dootson15-Apr-09 22:47
professionalStuart Dootson15-Apr-09 22:47 
GeneralRe: How do I remove thousand seperator. Pin
Cedric Moonen16-Apr-09 0:00
Cedric Moonen16-Apr-09 0:00 
GeneralRe: How do I remove thousand seperator. Pin
Stuart Dootson16-Apr-09 0:08
professionalStuart Dootson16-Apr-09 0:08 
Question[OT] Re: How do I remove thousand seperator. Pin
David Crow16-Apr-09 3:28
David Crow16-Apr-09 3:28 
AnswerRe: [OT] Re: How do I remove thousand seperator. Pin
Stuart Dootson16-Apr-09 3:32
professionalStuart Dootson16-Apr-09 3:32 
GeneralRe: How do I remove thousand seperator. Pin
cozyu16-Apr-09 16:03
cozyu16-Apr-09 16:03 
QuestionMeasure timing of functions Pin
dybs15-Apr-09 14:33
dybs15-Apr-09 14:33 
AnswerRe: Measure timing of functions Pin
Luc Pattyn15-Apr-09 14:52
sitebuilderLuc Pattyn15-Apr-09 14:52 
AnswerRe: Measure timing of functions Pin
Stuart Dootson15-Apr-09 15:33
professionalStuart Dootson15-Apr-09 15:33 
GeneralRe: Measure timing of functions Pin
dybs15-Apr-09 15:59
dybs15-Apr-09 15:59 
AnswerRe: Measure timing of functions Pin
Jijo.Raj15-Apr-09 22:37
Jijo.Raj15-Apr-09 22:37 
QuestionC++ function source code size Pin
Eureka_jim15-Apr-09 10:35
Eureka_jim15-Apr-09 10:35 

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.