Pointer to multidimensional array
From: shane (shanehird_at_hotmail.com)
Date: 06/03/04
- Next message: Jeff Relf: "Re: Graphics in C++ using Borland"
- Previous message: Daniel T.: "Re: first program evaluation"
- Next in thread: Gianni Mariani: "Re: Pointer to multidimensional array"
- Reply: Gianni Mariani: "Re: Pointer to multidimensional array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 3 Jun 2004 05:42:59 -0700
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.
- Next message: Jeff Relf: "Re: Graphics in C++ using Borland"
- Previous message: Daniel T.: "Re: first program evaluation"
- Next in thread: Gianni Mariani: "Re: Pointer to multidimensional array"
- Reply: Gianni Mariani: "Re: Pointer to multidimensional array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|