Peg city coder. Red River College #GameDev educator. Open Democracy Manitoba co-founder. Born and raised on Treaty 1 land in #Winnipeg, #Manitoba, Canada.
@raptor85 Oh, thanks! This is great info. I used WinMain as a way of getting rid of the extra console terminal that was opening up along with the SDL window.
Also, when I had my own main() I got a compiler error that I could only get rid of by adding a #define SDL_MAIN_HANDLED before the SDL.h include. Is using that #define okay, or is there a better way?
@raptor85 Thanks again. I'll work on fixing the project tomorrow to revert back to the standard main. Do you know if this will rid me of the extra terminal console? I don't mind it for some println debugging, but it feels odd for a production build.
@raptor85 I've got things going now with the standard int main(...). The one extra thing I needed to do was to manually have visual studio's linker link to sdl2main.dll. I can now also toggle the linker subsystem between console and windows to show or hide the extra console window. Thanks again for all your help!