Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / September 2006

Tip: Looking for answers? Try searching our database.

Outlook programming from C++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Olivier Langlois - 25 Sep 2006 16:46 GMT
Hi,

I guess this is the most appropriate forum to make this announcement
since there is no outlook.program_c++ newsgroup and that fellow C++
programmers will most likely find themselves here when they will be
looking for Outlook programming resources.

Due to the lack of resources on how to program Outlook from C++, I have
decided to write a tutorial webpage on that topic. If you are
interested, you can find it at:

http://www.olivierlanglois.net/Outlook_Automation_with_cpp.html

Have a nice day!
Olivier Langlois
http://www.olivierlanglois.net
Dan Mitchell - 25 Sep 2006 20:58 GMT
> http://www.olivierlanglois.net/Outlook_Automation_with_cpp.html

Nice -- you might want to mention something about getting strings back
out of VARIANTs as well, and possibly something about how to cast
between CString/LPCTSTR/etc, there's the add/removing const-ness that
comes in there.

Also, there's how to do the #import stuff for various older versions of
Outlook at http://www.danielmitchell.net/mailfaq, Q5.1, and for outlook
2003:

#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE11
\\MSO.DLL"
#import "C:\\Program Files\\Microsoft Office\\OFFICE11\\MSOUTL.OLB"
IMPPROPS

(though I hadn't seen your trick of importing by GUID rather than path,
that's very neat)

Oh and you should probably link to the KB article about this:

http://support.microsoft.com/kb/q199870/

-- dan
Dan Mitchell - 25 Sep 2006 23:53 GMT
> http://support.microsoft.com/kb/q199870/

And there's more sample code in Q304894, 259298 (which also has a full
listing of the various #import tweaks needed), 220600, 260854, 241287,
260574, and probably more; those are just the ones from the first couple
of pages of kb search results for 'outlook c++'.

-- dan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.