{"id":247,"date":"2010-06-22T11:50:15","date_gmt":"2010-06-22T11:50:15","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=247"},"modified":"2022-02-17T06:24:05","modified_gmt":"2022-02-17T06:24:05","slug":"add-a-form-from-another-project","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/forms\/add-a-form-from-another-project","title":{"rendered":"Add a form from another project"},"content":{"rendered":"<p>\nCopy the .h, .cpp and .resx files into the project directory.<br \/>\nRight click the project name in the solution explorer and use &#39;Add Existing Item&#39; to add them to the project.<br \/>\nSelect the .h file and then in the properties change the file type from &quot;C++ Class&quot; to &quot;C++ Form&quot;\n<\/p>\n<h4>\nTroubleshooting<br \/>\n<\/h4>\n<p>\nmissingmanifestresourceexception error\n<\/p>\n<p>\nWth an error message like this:\n<\/p>\n<p style=\"margin-left: 40px;\">\nMake sure &quot;OurLibraries.frmAbout.resources&quot; was correctly embedded or linked into assembly.\n<\/p>\n<p>\nThe resource file being generated doesn&#39;t match what the linker thinks it should be. &nbsp;Resolutions:\n<\/p>\n<p style=\"margin-left: 40px;\">\nChange the forms namespace to match the main projects namespace &#8211; this will typically fix the issue\n<\/p>\n<p style=\"margin-left: 40px;\">\nYou edit this setting to change the name of the generated .resx file, although this may cause new issues and make sure you delete the old .resx files as you might find both are being used but of cource only 1 will be being re-generated when you build.\n<\/p>\n<p style=\"margin-left: 80px;\">\nRight-click Form1.resX, and then click Properties.<br \/>\nIn the Form1.resX Property Pages dialog box, expand Configuration Properties, and then click General under Managed Resources.<br \/>\nChange the Resource File Name property from $(IntDir)\\$(RootNamespace).$(InputName).resources to $(IntDir)\\$(RootNamespace).SomethingElse.resources and then click OK.\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Copy the .h, .cpp and .resx files into the project directory. Right click the project name in the solution explorer and use &#39;Add Existing Item&#39; to add them to the project. Select the .h file and then in the properties change the file type from &quot;C++ Class&quot; to &quot;C++ Form&quot; Troubleshooting missingmanifestresourceexception error Wth an [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-247","post","type-post","status-publish","format-standard","hentry","category-forms"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=247"}],"version-history":[{"count":5,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":1118,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/247\/revisions\/1118"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}