Problem running a template from tutorialdebugging
Posted 03 October 2012 - 04:16 PM
When i opened the template a few days ago, it worked fine. Now i open the (freshly downloaded or the one from a few days ago) template and i get an error:
Being new to visual studio, and being an amateur C++'er I don't know what caused this. Can somebody clarify this?
Windows 7 64 bit / Visual Studio 2008
Posted 03 October 2012 - 05:09 PM
It doesn't work on W7 / VC++ 2008 / Release Win32 and on W7 / VC++ 2010 / Release Win32.
DirectX SDK June installed succesfully.
Posted 03 October 2012 - 07:14 PM
You might try adding a line of code like:
printf("SDL error: %s\n", SDL_GetError());Try copying that in after each SDL call (SDL_Init, SDL_SetVideoMode, etc.) in that section of code. That should hopefully display a more informative error message in the console.
Posted 04 October 2012 - 06:33 PM
If I put in the prints, it puts out "Current mouse doesn't have cursor support" and "SetProp() failed:invalid window handle"
this is the line (in the !init() loop in template.cpp) after which no output is given anymore;
surface = new Surface( SCRWIDTH, SCRHEIGHT, (Pixel*)s->pixels, s->pitch );
any further suggestions?
Posted 04 October 2012 - 06:47 PM
Unfortunately I don't have any more suggestions. I don't use SDL myself, so this goes beyond what I can guess at.
Posted 27 December 2012 - 01:29 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users