Winres.h in my driver??

Hey everyone,

I am a device driver developer, and developed a filter driver on VC 6. this however, is not a driver related question :rolleyes:

The company I am with wants everything converted to VC 2003 so I let VC 2003 convert the project. When I compile I get the following error-

RC1015: Cannot open include file 'winres.h'. :mad:

What is strange is that the include paths for the DDK has this file in it. So what is the deal, why am I getting this. The only thing I use the .rc file for is for version numbers and what not.

What puzzles me a little, is why this is even included. It is my understanding that this is only used for MFC and ATL, and both of those have been turned off in the project settings.

Thanks in advance
[801 byte] By [Snake Doctor] at [2007-11-19 15:36:29]
# 1 Re: Winres.h in my driver??
No...this is an include that is found in resource files. Why it is in your DDK, I have no IDEA.

This file is standard in VC6.0 in your VC98 directory. Maybe you can use Afxres.h or something. Perhaps you should do a search on your VS 2003 installation for that file. Perhaps it is in your include paths for the 2003 IDE.

Then create a simple app with 2003 and look at the resource file includes. Change the includes in your resource file to be like that. :o

HTH,

ahoodin

...and if this did help, please, don't forget to rate.
ahoodin at 2007-11-10 3:54:35 >
# 2 Re: Winres.h in my driver??
Thanks man, sounds like a plan. I think the reason it is in there is that the driver has a version resource in it (bought code). I will also see if I can just remove the version stuff and kill the rc file that 2003 thinks it needs. I'll let you know where I get with this.
Snake Doctor at 2007-11-10 3:55:35 >
# 3 Re: Winres.h in my driver??
Turns out that with visual C++ express you 'cannot' (at least not easily) create MFC or ATL projects (see http://msdn.microsoft.com/vstudio/express/support/faq/), or rather projects that use those (COM stuff, etc.). However you may be able to comment out the MFC/ATL parts and have it not adversely affect the program (worked for me!)
-Roger
rogerpack at 2007-11-10 3:56:33 >
# 4 Re: Winres.h in my driver??
See http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
pavelgutsa at 2007-11-10 3:57:35 >