troubleshooting Question

Programming the Windows Address Book

Avatar of tdiamond
tdiamond asked on
C++
1 Comment1 Solution452 ViewsLast Modified:
I am trying to be able to programmatically add/remove/modify entries in my Windows Address Book (Win 2000 Prof).  I am using Visual C++ 6.0 and am trying to start out by creating a simple console application with absolutely nothing in the main() function.  All I have is the following code:

**********
#include <wabapi.h>

main()
{

}
**********

The compiler reports the following errors:

**********
----------Configuration: WAB - Win32 Debug----------
Compiling...
WAB_Main.cpp
c:\program files\microsoft visual studio\vc98\include\wabapi.h(76) : error C2065: 'IWABObject' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\wabapi.h(76) : error C2065: 'IUnknown' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\wabapi.h(77) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
c:\program files\microsoft visual studio\vc98\include\wabapi.h(83) : error C2065: 'LPWABOBJECT' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\wabapi.h(83) : error C2501: 'DECLARE_MAPI_INTERFACE_PTR' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wabapi.h(83) : error C2078: too many initializers
.
.
.
Error executing cl.exe.

WAB.exe - 16 error(s), 0 warning(s)
**********

What am I missing or doing wrong?  The wabapi.h is provided by Visual Studio, so I doubt that it has syntax errors in it.  Any ideas?  Do I need to include any additional header files?

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros