I tested it like this...
I initialized spriteSheet to NULL in the constructor, but I thought you are suppose to NULL initialize pointers.Code:int main() { CSprite n; n.LoadImage("C:\\BSM.png"); //access violation. }
I tested it like this...
I initialized spriteSheet to NULL in the constructor, but I thought you are suppose to NULL initialize pointers.Code:int main() { CSprite n; n.LoadImage("C:\\BSM.png"); //access violation. }