error C2371: 'BOOKMARK' : redefinition; different basic types
error C2371: 'BOOKMARK' : redefinition; different basic types C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\mapidefs.h 1142
When I Build 64 bit dll then gets above error.
I used two approach in link http://mariusbancila.ro/blog/2011/06...n-of-bookmark/
please help how to resolve above error.
Re: error C2371: 'BOOKMARK' : redefinition; different basic types
Re: error C2371: 'BOOKMARK' : redefinition; different basic types
I used this solution but it get same error
Re: error C2371: 'BOOKMARK' : redefinition; different basic types
Quote:
Originally Posted by
vijaykumbhani
I used this solution but it get same error
Perhaps you "used this solution" not properly?
Re: error C2371: 'BOOKMARK' : redefinition; different basic types
From the link in post #2. Note that the proposed workaround using defines doesn't work. Also it is a little easier if you use
Code:
#include <windows.h>
#include <MAPIDefS.h>
namespace SQL
{
#include <sqltypes.h>
}
using namespace SQL;
as otherwise you can get issues with redefinition of _errno etc.
then use
Code:
::BOOKMARK bookmark = 1;
SQL::BOOKMARK sbookmark = 0;
when you want to use the different bookmarks.