.exe generated by Visual Studio file will not open from file explorer.

Georgii ZK 0 Reputation points
2024-05-27T09:24:31.07+00:00

I have created a very basic program in opengl using C++ that draws triangles and it runs perfectly when I click on the Local Windows Debugger button but when I try to run the exe from File Explorer it gives me: Debug Error! and the created window stays white without any triangles.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,072 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Georgii ZK 0 Reputation points
    2024-05-27T11:10:24.79+00:00

    I was following a tutorial so all myt files are identical to this: https://github.com/VictorGordan/opengl-tutorials/tree/92edce120ae0b3f35efcb2092428fb05eb578d54/YoutubeOpenGL%204%20-%20Organizing.

    As I before when I click on the local windows debugger it runs perfectly yet when I run the exe In the x64/debug folder gives me that error.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.