Do I need afxres.h, if I am not using MFC? How do I remove it from the .RC script?
Posted
by Cheeso
on Stack Overflow
See other posts from Stack Overflow
or by Cheeso
Published on 2009-10-15T22:51:38Z
Indexed on
2010/04/26
8:43 UTC
Read the original article
Hit count: 944
I don't know RC scripts.
I want to include Product version, File version, etc. metadata into a DLL I'm building. I'm using an .rc file to do that. The build is makefile driven. I'm following along with an example .rc scrpit I found.
The template .rc file includes afxres.h
, but I don't think I need that. But if I just remove it I get a bunch of compile errors.
What does a basic, non-MFC RC script look like? Can I remove all the stuff like this:
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
....
© Stack Overflow or respective owner