Nmap Development mailing list archives
Re: Nmap 4.04BETA1 Released For Testing
From: Alex Prinsier <aphexer () mailhaven com>
Date: Fri, 02 Jun 2006 10:53:00 +0200
kx wrote:
I just upgraded to Microsoft Platform SDK for Windows Server 2003 R2 and used these instructions for configuring Visual C++ 2005 Express Edition: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ I removed the old SDK from my Visual C++ Directories and added the new ones, and again, it built fine with #include "mfc/winres.h" What SDK version are you using with the commercial version, where is the SDK and mfc files installed, and what are your project directories for include files set to?
I see I have this installed: Microsoft .NET Framework Software Development Kit 2.0. which is installed at C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0 and I include $(FrameworkSDKDir)include. The winres.h and afxres.h are in different directories. afxver_.h says this: #define _AFX 1 // Microsoft Application Framework Classes #ifndef _MFC_VER #define _MFC_VER 0x0800 // Microsoft Foundation Classes version 8.00 #endif Those are in C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include and I included $(VCInstallDir)atlmfc\include. I'm not sure if you're anything with that new information :) But it just seems the commercial edition uses a different layout than the express edition? Alex
Cheers, kx On 6/1/06, kx <kxmail () gmail com> wrote:Yes, afxres.h includes winres.h, however in the PlatformSDK downloaded from: http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en both files were located in PlatformSDK\Include\mfc Both files have the comment: // This is a part of the Microsoft Foundation Classes C++ library. My install has the directory in: ($installdir)\VC\PlatformSDK\Include\mfc Hmm... Did you look at how your SDK directories are setup? Options -> Projects and Solutions -> VC++ Directories -> (Drop down list) Show directories for: Include files Cheers, kx On 6/1/06, Alex Prinsier <aphexer () mailhaven com> wrote:If I'm not mistaking, afxres.h is part of mfc, while winres.h is not. afxres.h itself actually includes winres.h. So the better solution is actually to use winres.h (like 4.04beta1 does), however I don't have a mfc/winres.h, just a winres.h. .\nmap.rc(10) : fatal error RC1015: cannot open include file'mfc/winres.h'.Removing mfc/ makes it work. I'm using the commercial version of visual studio. Alex kx wrote:Alex, I am not a windows guru, so I guess it shouldn't matter which .h we use. However, I have all free SDK items, and mine will build either way. If it can't find mfc/winres.h, you have a VS setup issue. See: http://seclists.org/lists/nmap-dev/2005/Oct-Dec/0108.html Build logs are saved as mswin32\Debug\BuildLog.htm nbase\Debug\BuildLog.htm etc.... Cheers, kx On 6/1/06, Alex Prinsier <aphexer () mailhaven com> wrote:This automated building in windows works splendid! Much betterthan thescripts I used. I got an error though, but I was able to fix it: I execute devenv.exe nmap.sln /build release /log nmapbuild.log I got an error on this line in nmap.rc:10 #include "mfc/winres.h" I changed it back the way it was in 4.03: #include "afxres.h" That fixes the error. Secondly I couldn't find nmapbuild.log. Anyone an idea where visual studio stores it? Alex Fyodor wrote:o Automated my Windows build system so that I just have to type a single make command in the mswin32 directory._______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev
Current thread:
- Nmap 4.04BETA1 Released For Testing Fyodor (May 31)
- Re: Nmap 4.04BETA1 Released For Testing Martin Mačok (Jun 01)
- Re: Nmap 4.04BETA1 Released For Testing Fyodor (Jun 12)
- Re: Nmap 4.04BETA1 Released For Testing Alex Prinsier (Jun 01)
- Re: Nmap 4.04BETA1 Released For Testing kx (Jun 01)
- Re: Nmap 4.04BETA1 Released For Testing Alex Prinsier (Jun 01)
- Re: Nmap 4.04BETA1 Released For Testing kx (Jun 01)
- Re: Nmap 4.04BETA1 Released For Testing kx (Jun 01)
- Re: Nmap 4.04BETA1 Released For Testing Alex Prinsier (Jun 02)
- Re: Nmap 4.04BETA1 Released For Testing Alex Prinsier (Jun 02)
- Re: Nmap 4.04BETA1 Released For Testing kx (Jun 01)
- Re: Nmap 4.04BETA1 Released For Testing Martin Mačok (Jun 01)