$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>c++ - Upgrade Visual Studio 2015 to 2022: Resource File is corrupt after edit in VS 2022 - Stack Overflow|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

c++ - Upgrade Visual Studio 2015 to 2022: Resource File is corrupt after edit in VS 2022 - Stack Overflow

matteradmin11PV0评论

I have a Visual-C++ Win32 Project, which I developed with Visual Studio 2015. Now I made an upgrade to Visual Studio 2022.

All works fine, except every time I make a small change, like just move a button or anything else and save, the <project>.rc file is completely changed - this is ok because it is rebuilt by the wizard, but the IDs are partially changed.

For example:

CONTROL         Zahnreader2,-1,"Static",SS_BITMAP | SS_CENTERIMAGE | SS_SUNKEN | WS_BORDER,7,7,97,130

is changed to:

CONTROL         VK_NONAME,-1,"Static",SS_BITMAP | SS_CENTERIMAGE | SS_SUNKEN | WS_BORDER,7,7,97,130

After this, I can't build because some keywords can not be found (WS_EX_COMPOSITED, VK_GAMEPAD_B).

When upgrading from 2015 to 2022, I also the following steps:

  • Additionaly installed Visual Studio 2015 because of 4.5 for c#
  • Installed MFC.
  • Set struct alignment to standard.
  • Retarged Solution to latest installed versions.

At the moment, I can edit the <project>.rc with a text-editor, which works. But how can I get back to edit resources inside Visual Studio?

Post a comment

comment list (0)

  1. No comments so far