S
shane
Ive searched a fair bit for the answer, but nothing has come up that
matches what i want to do. I'm having an issue with passing and
assigning pointers to multidimensional arrays.
The code:
/*.....*/
TCHAR msg[2][4][MAX_PATH]
func(msg);
/*.....*/
func(TCHAR *pmsg[2][4][MAX_PATH])
{
TCHAR *m_pmesg;
m_pmesg = pmsg;
}
Ive tried a few different variations but with no luck. I keep getting
the error
error C2440: '=' : cannot convert from 'TCHAR *[][2][260]' to 'TCHAR
*[4][2][260]'
on the line 'm_pmesg = pmsg' as well as 'func(msg)'.
I would appreciate any help.
matches what i want to do. I'm having an issue with passing and
assigning pointers to multidimensional arrays.
The code:
/*.....*/
TCHAR msg[2][4][MAX_PATH]
func(msg);
/*.....*/
func(TCHAR *pmsg[2][4][MAX_PATH])
{
TCHAR *m_pmesg;
m_pmesg = pmsg;
}
Ive tried a few different variations but with no luck. I keep getting
the error
error C2440: '=' : cannot convert from 'TCHAR *[][2][260]' to 'TCHAR
*[4][2][260]'
on the line 'm_pmesg = pmsg' as well as 'func(msg)'.
I would appreciate any help.