I have an array of strings as follows:
char *sCmdInt[8];
I need to use elements from the array to pass to another dll. The function takes two LPSTRs as parameters. What I need to do is copy two elements from the array into ints/longs, and then create two LPSTRs from those. I cannot pass the array elements directly, as this causes an access violation:
DIAG_ReadMem32(sCmdInt[1], sCmdInt[2]);
Any suggestions as to how to make totally independent copies? The values held in the array may be hex (can these be converted to int/long?)
Thanks