[SOLVED]Variables Error
Posted: Thu Mar 31, 2011 7:43 am
Hi everyone,
I have a memory issue.
I have two Variables.
The first one's name is "Achar" and i am using this code to load it :
The second one's name is "mus" and i am using this code to load it :
I am using the first one to load a bitmap that contains the "A" char and the second one to load the mouse cursor bitmap in it.
My problem is:
when i load the mouse bitmap , the Achar variable overwriting with the contents of the mus var contents.
I have a memory manager.
i use this code to load the contents of the bitmap in the var:
---------------------------------------------
Thank you in advance
---------------------------------------------
I have a memory issue.
I have two Variables.
The first one's name is "Achar" and i am using this code to load it :
Code: Select all
static char* Achar = "I am empty";
Code: Select all
static char* mus = "I am empty too";
My problem is:
when i load the mouse bitmap , the Achar variable overwriting with the contents of the mus var contents.
I have a memory manager.
i use this code to load the contents of the bitmap in the var:
Code: Select all
Achar = (char*)(bitmapp -> pixeldata);
Thank you in advance
---------------------------------------------