System.Resources.MissingManifestResourceException错误C ++ / CLi与图标文件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了System.Resources.MissingManifestResourceException错误C ++ / CLi与图标文件相关的知识,希望对你有一定的参考价值。

您好,最近在我的项目中,我在属性>窗口样式>图标]上更改了窗口表单应用程序的图标这是我选择的图标:

<< img src =“ https://image.soinside.com/eyJ1cmwiOiAiaHR0cHM6Ly9pLmltZ3VyLmNvbS9RTUozWXRWLnBuZyJ9” alt =“”>

,但是每当我启动应用程序时,都会出现此错误:

System.Resources.MissingManifestResourceException: 'Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "formApp.MyForm.resources" was correctly embedded or linked into assembly "formApp" at compile time, or that all the satellite assemblies required are loadable and fully signed.'

在此行:

this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));

[$this.Icon对应于hello.ico

关于如何解决该问题的任何想法?

提前感谢。

您好,最近在我的项目中,我更改了属性上的窗口表单应用程序的图标> window Style> Icon这是我选择的图标:但是,每当我启动应用程序时,都会出现此错误:System...。

答案

通过从article中启发自己,将自己的代码更改为此,解决了我的问题:

以上是关于System.Resources.MissingManifestResourceException错误C ++ / CLi与图标文件的主要内容,如果未能解决你的问题,请参考以下文章