View Single Post
  #2  
Old September 25th 06, 09:58 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Dan Mitchell
external usenet poster
 
Posts: 58
Default Outlook programming from C++

"Olivier Langlois" wrote in
ups.com:
http://www.olivierlanglois.net/Outlo..._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
Ads