NOTE: In no step along the way am I outputting DEBUG info
The setup:
I created a static library with a single, simple class in it:
class xTest
{
int Test() { return 1; }
}
I compile the LIB file and all is well. Then I create a Win32 project which imports my xTest.lib. It does a few things...
The problem is I have an int array, and I need to convert it to a char array so that I can get one byte at a time from it. This is what I tried:
int *i = new int[10];
i[0] = 1;
i[1] = 2;
i[2] = 3; //etc
char *c = (char *) i;
after doing this, this is what I would expect:
c[0] == 0
c[1] == 0...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.