Hello-
Using Visual Studio 2017 under Windows 10, I'm editing a copy of the "template_windows_vs2017_64" that I've placed in the same folder. I added a "media" sub-directory and placed a PNG file in it along with a text file. I can load the text file correctly using the standard library I/O commands, but when I add:
unsigned int const button0 = agk::LoadSprite("media/kbButton_small.png");
to the template.cpp file's Begin function, the sprite appears as the red "X" icon indicating some sort of failure. To check I also tried to load an image I have successfully used in AppGameKit Tier 1 with the same results. When I try to execute the "Step Into" function in VS to try and see myself where the error is, the code just skips over the function instead. I will note that when loading my text file I have to use "media\\" over "media/", but using "media\\" with the sprite loading doesn't change the outcome. What should I be looking at to fix this?
Note also that if I move this constant declaration out of 'Begin' and place it in the global space, the program gives me an unhandled exception.
Goo Goo G\'Joob!