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.
Database Support fails! Help
Moderator: Moderators
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
Re: Database Support fails! Help
isn't the error message clear enough?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>"
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)
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)