DLL Hurts Brain
Posted: Sun Jan 30, 2011 6:52 pm
Holy sweet mother of God in heaven, what the hell is wrong with this? XD
I have NO idea what in the HELL I'm getting an error for doing this in my DLL. It's not an "error" persay, it only occurs when I call this function:
I commented out literally everything except for return -1 to make sure that returning an arbitrary value wasn't the problem. The DLL is just a base engine I'm working on called Sheepish, and this is part of the Render System's Image Component System. Returning -1 is the problem when I run it in debug. You shouldn't need to see any other code, because return -1 is the only problem, lol. Of course I may be wrong (lemme know if I am).
Thanks for any help .
I have NO idea what in the HELL I'm getting an error for doing this in my DLL. It's not an "error" persay, it only occurs when I call this function:
Code: Select all
int RenderSys::LoadImage(std::string loc){
// Add the sprite to the array
// sprite.push_back(new Sprite("image.jpg", 0));
// Set the index of the sprite
return -1;
}
Thanks for any help .