•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 455,969 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,760 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 1245 | Replies: 2 | Solved
![]() |
•
•
Join Date: Oct 2007
Posts: 14
Reputation:
Rep Power: 2
Solved Threads: 0
I am running trough the www.winprog.org tutorial, I have run into yet another error.
it says it cannot open "winres.h", which I would agree with because it is not located on my computer at all!
Is this file part of some other program, I thought it was an included file with windows, but apparently not.
Can anyone just fill me in on the who/what/where/etc of winres.h?
#ifndef __BORLANDC__ #include "winres.h" #endif
it says it cannot open "winres.h", which I would agree with because it is not located on my computer at all!
Is this file part of some other program, I thought it was an included file with windows, but apparently not.
Can anyone just fill me in on the who/what/where/etc of winres.h?
It's an mfc file (ms compilers standard edition or better are required).
The simplest workaround is to just replace it with #include <windows.h>.
Alternatively, if you're using mingw then you can #include <afxres.h> (which just #includes windows.h and defines IDC_STATIC).
If you're using msvc-express with the platform/windows sdk then you'll have a copy of it (both afxres.h and winres.h) in your-win-psdk-directory\Include\mfc; you can add this directory to the include paths of your compiler.
The simplest workaround is to just replace it with #include <windows.h>.
Alternatively, if you're using mingw then you can #include <afxres.h> (which just #includes windows.h and defines IDC_STATIC).
If you're using msvc-express with the platform/windows sdk then you'll have a copy of it (both afxres.h and winres.h) in your-win-psdk-directory\Include\mfc; you can add this directory to the include paths of your compiler.
brought into existence by a few lines of print
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Installing Windows 98 On VMware. Floppy problem (Windows 9x / Me)
- Windows XP keeps restarting since a new video card (Windows NT / 2000 / XP / 2003)
- Redhat Linux 6.2 - ipop3d problem? (*nix Software)
- Problem with T720 (Gadgets and Gizmos)
- Connection Problems (Networking Hardware Configuration)
- Encoding (Unicode) problem in IE 6.0 (Web Browsers)
- .htaccess mod_rewrite problem (Linux Servers and Apache)
- Javascript/HTML problem!!! (JavaScript / DHTML / AJAX)
- Problem with Windows Update and WinXP (Web Browsers)
Other Threads in the C++ Forum
- Previous Thread: open a folder in graphical mode using c++ and linux os
- Next Thread: [urgent] Need Help on my Visual C++


Linear Mode