Now to the best of my knowlege the following code should work. but it casues an "Access violation" every time i try to run it.
Code:
int main(int argc, char* argv[])
{
char *message;
int help = 1;
sprintf(message,"char: %d",help);
cout<<message;
return 0;
}
Any time i try doing anything else to a "char *" i get a runtime error that says memory location could not be "read". including this:
Code:
char *blank;
int Size = 80;
blank = new char[Size];
memset((char*)blank,'0',Size);
I'm also having some other errors that make absolutly no sense to me for example i have a DirectX9 program that draws a textured quad to th screen. Its and windowed program. I changed it to fullscreen recompiled and bang! it refused to load the texture from the disk. I cant find any reason why. ive been trying to figure this out for 2 days now. please help! thanks.