Print Page | Close Window

Statically-linked MFC has trouble loading string r

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23787
Printed Date: 12 December 2024 at 8:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Statically-linked MFC has trouble loading string r
Posted By: mikeblas
Subject: Statically-linked MFC has trouble loading string r
Date Posted: 18 December 2018 at 7:11pm

We have a statically-linked MFC application that uses CodeJock ToolkitPro. After upgrading from 18.3 to 18.6, I find that some of my applications don't load. In release builds, they crash. In debug builds, they pitch an exception because an untitled MFC doc/view document can't load the AFX_IDS_UNTITLED string resource.

I've debugged the issue pretty deeply, and I believe this problem to be caused by the upgrade to 18.6. Against this build, my application ends up with two string tables: one that's neutral, and one that's US/English. When building against 18.3, I have only one US/English string table. The desired  AFX_IDS_UNTITLED string resource is in the neutral string table, and MFC can't find it because it's looking for US/English strings (by design).

I see that the release notes include this item: "Inability to use some MFC resources in static configurations fixed for all localized modules"

Where can I read more about that issue? It sounds like it's directly related to the issue that I'm experiencing.




Replies:
Posted By: kinook
Date Posted: 14 November 2019 at 10:25pm
I ran into this too -- after much spelunking, I found that this is resolved by removing the AFX includes from

Common\res\Resource.rc
Common\res\Resource-Neutral.rc
Common\res\Resource_bg.rc

-------------
Automate software builds with Visual Build Pro

https://kinook.com/VBP/" rel="nofollow - http://www.visualbuild.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net