BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using WAB.H with BCB2006

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Compatibility with MFC)
View previous topic :: View next topic  
Author Message
riweber
Guest





PostPosted: Fri Sep 01, 2006 8:10 am    Post subject: Using WAB.H with BCB2006 Reply with quote



I want to use the WAB (Windows Address Book) in an application. I tried
to define WIN32 and include the file wab.h but I always get the
following compilation errors:

[C++ Fehler] wabdefs.h(79): E2238 Bezeichner 'WCHAR' mehrfach deklariert
[C++ Fehler] winnt.h(267): E2344 'WCHAR' bereits deklariert
[C++ Fehler] wabdefs.h(8Cool: E2238 Bezeichner 'LPWSTR' mehrfach deklariert
[C++ Fehler] winnt.h(275): E2344 'LPWSTR' bereits deklariert
[C++ Fehler] wabdefs.h(89): E2238 Bezeichner 'LPCWSTR' mehrfach deklariert
[C++ Fehler] winnt.h(279): E2344 'LPCWSTR' bereits deklariert

It seems that I have to declare other #define. Do you know what?
Back to top
Ed Mulroy
Guest





PostPosted: Fri Sep 01, 2006 4:33 pm    Post subject: Re: Using WAB.H with BCB2006 Reply with quote



I assume that "mehrfach deklariert" means defined more than once and
"bereits deklariert" means not defined.

Try moving the include of windows.h earier in the source file than the
include of wab.h (to a line above the include of wab.h).

.. Ed

Quote:
riweber wrote in message
news:44f7e818 (AT) newsgroups (DOT) borland.com...

I want to use the WAB (Windows Address Book) in an application. I tried to
define WIN32 and include the file wab.h but I always get the following
compilation errors:

[C++ Fehler] wabdefs.h(79): E2238 Bezeichner 'WCHAR' mehrfach deklariert
[C++ Fehler] winnt.h(267): E2344 'WCHAR' bereits deklariert
[C++ Fehler] wabdefs.h(8Cool: E2238 Bezeichner 'LPWSTR' mehrfach deklariert
[C++ Fehler] winnt.h(275): E2344 'LPWSTR' bereits deklariert
[C++ Fehler] wabdefs.h(89): E2238 Bezeichner 'LPCWSTR' mehrfach deklariert
[C++ Fehler] winnt.h(279): E2344 'LPCWSTR' bereits deklariert

It seems that I have to declare other #define. Do you know what?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Compatibility with MFC) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.