Database Support fails! Help

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
rsvinaya
Posts: 1
Joined: 2004-08-23 08:03

Database Support fails! Help

Post by rsvinaya » 2004-08-23 09:41

Hi,

I have been trying to include Database support within DC++ (.403). I am unable to include <afxdb.h> in the include files, as it is resulting in the following error(s):
I am working with DC++ on Windows XP with .NET 2003 (7.1).

"c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxv_w32.h(18 ): fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>"

I am pretty new to DC++ (a week), Am I missing something important??? :(

Please help me out.
Thank you,
RSV.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-08-23 15:34

What are you trying to achieve?
The world is coming to an end. Please log off.

DC++ Guide | Words

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Re: Database Support fails! Help

Post by Sedulus » 2004-08-23 19:37

rsvinaya wrote:"c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxv_w32.h(18 ): fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>"
isn't the error message clear enough?

DC++ includes windows.h, and it seems that that other header doesn't like it. you might be able to interface with a DB using a non-MFC API. I guess google and msdn will be of help. in any case.. the problem is not with DC++, unless you call using WTL instead of MFC a problem.

(it _might_ simply work to include that header before DC++ includes windows.h)
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Locked