September 2nd, 2013, 05:49 AM
C++ outlook 2010 sample add-in build issue
I am currently trying to follow the article at:
The sample code for this application is available at:
Basically, this article shows us how to build an outlook 2010 add-in using ATL, XML, COM, Form Regions. I have followed the steps. Although, the article is for VS 2010 and Outlook 2010, I was able get rid of most of the errors on VS 2008 but a few remained (only 3 infact) and those were asking me to upgrade to VS 2008 sp1. However, it is giving me some errors on VS 2010 that are related to #import directives included in StdAfx.h.
The following is the code available in StdAfx.h
The errors I am getting are as follows:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
auto_rename auto_search raw_interfaces_only rename_namespace("AddinDesign")
// Office type library (i.e., mso.dll).
auto_rename auto_search raw_interfaces_only rename_namespace("Office")
using namespace AddinDesign;
using namespace Office;
I do not have much understanding of how to find out which libs are being refered using libid: prefix. Also, how to search a particular tlb or lib in a path with OLE-COM viewer? Can any one please tell me how to find a tlb using a GUID? Please help me get rid of these errors.
1 IntelliSense: cannot open source file "C:/Bhushan/NativeAddIn/NativeAddIn/Debug/libid:AC0714F2-3D04-11D1-AE7D-00A0C90F26F4.tlh" c:\bhushan\nativeaddin\nativeaddin\stdafx.h 28 2 NativeAddIn
2 IntelliSense: cannot open source file "C:/Bhushan/NativeAddIn/NativeAddIn/Debug/libid:2DF8D04C-5BFA-101B-BDE5-00AA0044DE52.tlh" c:\bhushan\nativeaddin\nativeaddin\stdafx.h 32 2 NativeAddIn
3 IntelliSense: name must be a namespace name c:\bhushan\nativeaddin\nativeaddin\stdafx.h 34 18 NativeAddIn
4 IntelliSense: name must be a namespace name c:\bhushan\nativeaddin\nativeaddin\stdafx.h 35 18 NativeAddIn
September 4th, 2013, 04:28 AM
Re: C++ outlook 2010 sample add-in build issue
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!