?
Solved

AFX_RESOURCE_DLL becomes undefined

Posted on 1999-11-01
2
Medium Priority
?
1,537 Views
Last Modified: 2013-12-03
My App has a separate DLL for all resources. The DLL has 4 configurations, Debug+Release for German and English(US).
When compiled, the DLLs are nearly identical, because AFX_RESOURCE_DLL becomes #undefined somehow, and so the code

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_XXX)

(within the .RC file) is always true.
But I HAVE defined AFX_RESOURCE_DLL in EACH configuration, and XXX is ENU in the english configs, and DEU in the german configs. Everything is defined in Project/Settings/C/C++/Preprocessor definitions. Is this line restricted in the length ???

Or who #undefines this Macro ?

0
Comment
Question by:PC-Alex
2 Comments
 
LVL 4

Accepted Solution

by:
abancroft earned 150 total points
ID: 2174857
Make sure that you have also set the #defines in Project/Settings/Resources/Preprocessor Definitions.
0
 
LVL 1

Author Comment

by:PC-Alex
ID: 2176455
That helped!

I didn't know that there are separate "Preprocessor definition" boxes.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question