G
G
German2018-07-10 12:44:00
visual studio
German, 2018-07-10 12:44:00

The data required to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A), how to fix?

I create an empty CLR project, add WindowsForms, but I see the following error.
5b447fb774f59759656617.png
I've searched the forums and haven't been able to find a definitive answer.
How do I switch to the visual editor?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
German, 2018-07-10
@mrjbom

Solution:
Create an empty CLR project.
Adding a form.
Open the tab
Write this in the form_name.cpp file

#include "имя_формы.h"
#include <Windows.h>

using namespace Имя_Вашего_Проекта;
 
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false);
    Application::Run(gcnew MyForm);
    return 0;
}

We save.
We close the project.
We open it again, if a window with a visual editor appears, then there will be an error.
We close it.
Open by double-clicking form_name.h
Done.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question