CDO with VC++ ?? Working sample anyone?
CDO with VC++ ?? Working sample anyone?
Author
Discussion

Don

Original Poster:

28,378 posts

308 months

Wednesday 6th October 2004
quotequote all
A bit of a poser for the PH Computers'n'Stuff collective...

Lots of us have made CDO send an e-mail. Probably from within ASP or maybe VB.

But has anyone done it from inside a C++ program?

I've managed to use ClassWizard to create the classes I need but can I get the bugger to work? Nope..

So. If anyone has a working sample. A little MFC program which send an e-mail via a CDO...that I could do a little cut'n'pasting from I would be very grateful.

In fact - I'll even buy you a pint! So go on C++ guys...who has done it, then?

JonRB

79,471 posts

296 months

Wednesday 6th October 2004
quotequote all
Errrr, CDO? Que?

Edit: I've sent emails via MAPI in C++. Does that help?

>> Edited by JonRB on Wednesday 6th October 19:32

Don

Original Poster:

28,378 posts

308 months

Wednesday 6th October 2004
quotequote all
JonRB said:
Errrr, CDO? Que?

Edit: I've sent emails via MAPI in C++. Does that help?

>> Edited by JonRB on Wednesday 6th October 19:32


CDO - Collaboration Data Objects ... the things that came after MAPI. I've made MAPI do stuff in the past too...in fact its what I'm replacing, unfortunately.

The reason is that MAPI is fraught to make operate in the context of a Win32 Service - and CDO is no trouble...

JonRB

79,471 posts

296 months

Wednesday 6th October 2004
quotequote all
Ok. Send me the ASP and/or VB code and I'll see if I can convert it to C++ for you.

Edit: C++ Sample Code for CDO on MSDN is here and here

>> Edited by JonRB on Wednesday 6th October 22:46

Don

Original Poster:

28,378 posts

308 months

Thursday 7th October 2004
quotequote all
JonRB said:
Ok. Send me the ASP and/or VB code and I'll see if I can convert it to C++ for you.

Edit: C++ Sample Code for CDO on MSDN is here and here

>> Edited by JonRB on Wednesday 6th October 22:46


Excellent! THANKS!

I can manage the C++ Jon, its the working example I needed and it looks like you've found it for me...normally I'm good at search the MSDN - obviously not today!

THANKS! When I organise a local drive IOU a pint!