OpenGL program not reaching main

0

I am programming a 3D application in C++ using visual studio 2010, and after testing the code using breakpoints, I have found that the main method isn't being reached. The cmd window is opening, and I believe that the dlls are being loaded, however I am getting the message at the bottom of the output window

The thread 'Win32 Thread' (0x8a8) has exited with code -1073741510 (0xc000013a). The program '[4112] 3dApp_1.exe: Native' has exited with code -1073741510 (0xc000013a).

If anyone needs more information to help, just let me know, I'm struggling to know what to add without just putting the program up here. Thanks.

edit: For some reason the program had an issue with a .txt file and a .obj being in the source files directory, so removing that allowed an openGL window to be created.

c++
opengl
dll
include
asked on Stack Overflow Mar 30, 2013 by Yann • edited Mar 31, 2013 by Yann

1 Answer

0

You need to change the entry point in the settings (see here or here).

Go to Project Properties/Configuration Properties/Linker/Advanced/Entry Point. Set entry point to mainCRTStartup.

answered on Stack Overflow Mar 30, 2013 by engineerC

User contributions licensed under CC BY-SA 3.0