H
Hiusing Ngai
Hello,
I'm porting some C code to VC++ 7. A line of C code is:
int (*v[7])[3];
and the C code allocate memory:
v[6] = calloc (width*5, sizeof **v);
The VC++ 7 has the following erorr when I compile the program.
error C2440: '=' : cannot convert from 'void *' to 'int (*)[3]'
Do you have any idea how to type cast it?
I tried (int**) but didn't work.
Thanks,
Hiusing
I'm porting some C code to VC++ 7. A line of C code is:
int (*v[7])[3];
and the C code allocate memory:
v[6] = calloc (width*5, sizeof **v);
The VC++ 7 has the following erorr when I compile the program.
error C2440: '=' : cannot convert from 'void *' to 'int (*)[3]'
Do you have any idea how to type cast it?
I tried (int**) but didn't work.
Thanks,
Hiusing