dbTalk Databases Forums  

VS 2005 COM DLL & BerkeleyDB

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss VS 2005 COM DLL & BerkeleyDB in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default VS 2005 COM DLL & BerkeleyDB - 05-23-2006 , 12:50 PM






Hi!
Is BerkelyDB portable to Visual Studio 2005 (with a COM DLL)?
I have created a DLL in VS 2003 without any problems not I am getting
an oledb.h conflict in 2005.
I tried this workaround:
/* Work around DBTYPE name conflict with Berkeley DB */
#define DBTYPE MS_DBTYPE
#include <oledb.h>
#undef DBTYPE

....but it did not seem to work. Do you know where I would include this
workaround? Anyone else have this problem using Berkeley with a VS 2005
COM DLL?

Any advice is appreciated.
Thanks


Reply With Quote
  #2  
Old   
Michael Cahill
 
Posts: n/a

Default Re: VS 2005 COM DLL & BerkeleyDB - 05-23-2006 , 07:36 PM






Hi,

There is a FAQ about this issue here:

http://dev.sleepycat.com/resources/faq_show.html?id=127

Are you still having trouble after following the suggestions there?

Regards,
Michael.


Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: VS 2005 COM DLL & BerkeleyDB - 05-24-2006 , 09:09 AM



Hi,
Yes, I get an error message saying something to the effect that
"windows.h" was already loaded. I tried to place in different locations
in stdafx.h but it did not seem to work. I did not use oledb.h in VS
2003 but Microsoft seems to include it in thier header files when you
upgrade to VS 2005.

I also tried creating a blank COM dll using the Microsoft defaults (in
VS 2005), when I include and reference Berkeley I get the same DBTYPE
error message. The COM dll I created has ATL support. This will
probably reference more Microsoft header files.

Thanks again!

Michael Cahill wrote:
Quote:
Hi,

There is a FAQ about this issue here:

http://dev.sleepycat.com/resources/faq_show.html?id=127

Are you still having trouble after following the suggestions there?

Regards,
Michael.


Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: VS 2005 COM DLL & BerkeleyDB - 05-29-2006 , 09:51 AM



Hello again,
Has anyone else made a COM DLL in Visual Studio 2005 and successfully
linked the Berkeley Library?
Thanks


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.