C++ project does not open in Visual Studio

Also if I double click on a C++ Class it tries to open in Visual Studio but gets stuck with the same result, says ‘Loading Visual Studio’ forever in the lower right but only opens a command prompt.