User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Oct 2007
Posts: 14
Reputation: twooften is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
twooften twooften is offline Offline
Newbie Poster

Question winres.h problem

  #1  
Nov 25th, 2007
I am running trough the www.winprog.org tutorial, I have run into yet another error.

#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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Posts: 18
Reputation: Comrade Ogilvy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 5
Comrade Ogilvy's Avatar
Comrade Ogilvy Comrade Ogilvy is offline Offline
Newbie Poster

Re: winres.h problem

  #2  
Nov 25th, 2007
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.
brought into existence by a few lines of print
Reply With Quote  
Join Date: Oct 2007
Posts: 14
Reputation: twooften is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
twooften twooften is offline Offline
Newbie Poster

Re: winres.h problem

  #3  
Nov 26th, 2007
Bingo, thanks dude.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 9:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC