Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compilation Problems for VS8

Status
Not open for further replies.

swingkyd

Programmer
Jul 10, 2003
34
CA
I'm using the following compiler with the most recent Windows SDK:
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: VC Express

Microsoft Visual C++ 2005 76542-000-0000011-00125
Microsoft Visual C++ 2005

Now, I'm trying to compile a program and I keep getting strange errors. Google is not helping me solve this problem and neither can the developer of the code (written for a previous version...v7):

1>------ Build started: Project: Notepad2, Configuration: Release Win32 ------
1>Compiling resources...
1>.\Notepad2.rc(13) : fatal error RC1015: cannot open include file 'afxres.h'.

and the build log says something like this:

Command Lines Creating command line "rc.exe /d "_VC80_UPGRADE=0x0700" /fo"Release/Notepad2.res" .\Notepad2.rc"
Output Window Compiling resources...
.\Notepad2.rc(13) : fatal error RC1015: cannot open include file 'afxres.h'.

Notepad2 : warning PRJ0041 : Cannot find missing dependency 'afxres.h' for file 'Notepad2.rc'. Your project may still build, but may continue to appear out of date until this file is found.

Now, the file that is missing is actually in the paths so I'm very confused. Does anyone know how to fix this?

The path for my INclude is very short:
C:\MS_PSDK\Include

Any help would be greately appreciated!

IF anyone is interested in this program, it is called Notepad2 and is openly available.
 
I'm not sure but I think express comes without MFC. I'll have to download a copy to check.

1) Check if there is an MFC directory in express probably something like ATLMFC
2) Check if the MFC directory is in the global include list
 
notepad2 does not use MFC anyway. However, you can install the MSDK for windows and that includes MFC. Now it only seems to be used in the resourcing which is strange. As mentioned before, the developer ensured me that he does not use MFC.
 
I don't think the Windows SDK comes with MFC. If it does, let me know how to get it to work because I tried for hours when I first installed VC++ 2005 Express.
 
well, I do actually have the mfc libraries (header files exist etc.)...
C:\MS_PSDK\Include\mfc
has all the headers it has asked for.

Aside from that, the developer doesn't use MFC so why is the compiler trying to use it anyway? It's very strange behaviour if you ask me!

 
don't really know much about MFC, but also tried at length. I got the impression you can download the runtime bits of mfc necessary should you be unfortunate enough to lack what you need to run an application that expects it, but you can't download enough to use mfc within a project that you are compiling with Studio Express. After all, express is currently free (and is presumably free in order to encourage people to go .NET and use CLR) so we can't really expect Microsoft to give us their latest MFC compiler for free, simultaneously undermining both their profitability and their desire to encourage .NET.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top