Visual C++ CLR designer is always showing 0x8000000A error in the second run of the project and editing design

0

I'm trying to make a great GUI for my csgo cheat. I decided to use C++/CLR. Firstly I create empty project then, I change in a properties entrypoint and the subsystem and I add this code to the cpp file:

#include "MyForm.h"

using namespace System;`

using namespace System::Windows::Forms;`

[STAThreadAttribute]
void Main(array<System::String ^> ^args)
{
 Application::EnableVisualStyles();
 Application::SetCompatibleTextRenderingDefault(false);
 SmallPackofCheats::MyForm mainForm;
 Application::Run(%mainForm);
}

Then I save it and I restart visual studio. I run visual studio and I design menu. Designer works. After ended work I save everything and I close Visual Studio. Every next run of the Visual Studio and after opening my project I have this problem: image link

How to solve this problem? Thanks in advance.

c++
visual-c++
c++-cli
asked on Stack Overflow Dec 23, 2017 by (unknown user)

1 Answer

3

I encountered a similar problem recently and the other suggested solutions did not help. This method, however, did work:

  1. Window -> Close all Documents (or at least ensure that every designer window is closed)
  2. Close VS and restart it (important!)
  3. Reopen the solution
  4. Build -> Rebuild Solution

Now you should be able to open the designer.

answered on Stack Overflow May 23, 2018 by Miral

User contributions licensed under CC BY-SA 3.0