Using INT array to pass structures?
Just a curious question. Is it wise to try and pass objects on the heap around using an integer array by storing in each array item the address of the objects.
Something like the following perhaps.
I see a compiler warning in the form of:
s1 *struct1 = new s1;
c1 *class1 = new c1;
int *params = new int;
params = (int)struct1;
params = (int)class1;
int *params = (int*)lpParams;
s1 *struct1 = (s1*)params;
c1 *class1 = (c1*)params;
delete  params;
warning C4312: 'type cast' : conversion from 'int' to 's1 *' of greater size