I want to make a global variable:
Let's start by allocating some space:PHP Code:
char *str;
later pass some string:PHP Code:
str = GloballAlloc(GPTR, 10);
let's say, later I want to make a bigger stringPHP Code:
lstrcpy(str, "123");
How can I implement GlobalReAlloc? Is there another way to re-alloc some variable for future smaller or bigger strings?PHP Code:
lstrcpy(str, "somestringthatisbigger");