Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetWindowsHookEx from NT Service Pin
kelt66627-Jun-06 22:44
kelt66627-Jun-06 22:44 
Questionfile path Pin
amit.code27-Jun-06 0:22
amit.code27-Jun-06 0:22 
AnswerRe: file path Pin
FarPointer27-Jun-06 0:28
FarPointer27-Jun-06 0:28 
GeneralRe: file path Pin
amit.code27-Jun-06 1:24
amit.code27-Jun-06 1:24 
AnswerRe: file path Pin
Hamid_RT27-Jun-06 1:27
Hamid_RT27-Jun-06 1:27 
Questionpeer to peer file sharing Pin
jalsa G27-Jun-06 0:08
jalsa G27-Jun-06 0:08 
AnswerRe: peer to peer file sharing Pin
Hamid_RT27-Jun-06 1:52
Hamid_RT27-Jun-06 1:52 
QuestionAllocating a Multidimensional Array Pin
Richard Andrew x6427-Jun-06 0:06
professionalRichard Andrew x6427-Jun-06 0:06 
Does anyone know the correct grammar for allocating a multidimensional array on the heap?

I have tried:

CHAR **Z = new CHAR[15][10];

CHAR *Z = new CHAR[15][10];


Upon further investigation is appears that C++ treats multidimensional arrays as distinct data types. This means that the problem in the above examples is that it can't assign a multidimensional array TYPE to any of the pointer types I have tried.

It has no problem, however translating between simple pointer types and SINGLE dimensional arrays. I suppose that the language is required to keep track of the number of elements in each dimension, so that it can perform the proper indexing when you supply subscript operators. So this must be the reason that the arrays are incompatible with simple pointer types, because simple pointer types do not carry such information around with them.
AnswerRe: Allocating a Multidimensional Array [modified] Pin
Viorel.27-Jun-06 1:32
Viorel.27-Jun-06 1:32 
GeneralRe: Allocating a Multidimensional Array Pin
Richard Andrew x6427-Jun-06 3:54
professionalRichard Andrew x6427-Jun-06 3:54 
AnswerRe: Allocating a Multidimensional Array Pin
Hamid_RT27-Jun-06 2:15
Hamid_RT27-Jun-06 2:15 
GeneralRe: Allocating a Multidimensional Array Pin
Richard Andrew x6427-Jun-06 3:56
professionalRichard Andrew x6427-Jun-06 3:56 
Questionftp link library in VC++? Pin
usman_07026-Jun-06 23:57
usman_07026-Jun-06 23:57 
QuestionXml Pin
vasusree26-Jun-06 23:30
vasusree26-Jun-06 23:30 
AnswerRe: Xml Pin
Taka Muraoka26-Jun-06 23:49
Taka Muraoka26-Jun-06 23:49 
GeneralRe: Xml Pin
vasusree27-Jun-06 0:04
vasusree27-Jun-06 0:04 
GeneralRe: Xml [modified] Pin
FarPointer27-Jun-06 0:32
FarPointer27-Jun-06 0:32 
GeneralRe: Xml Pin
Taka Muraoka27-Jun-06 0:51
Taka Muraoka27-Jun-06 0:51 
Questionproblem with string table Pin
sach!!26-Jun-06 23:29
sach!!26-Jun-06 23:29 
AnswerRe: problem with string table Pin
Don Box26-Jun-06 23:46
Don Box26-Jun-06 23:46 
GeneralRe: problem with string table [modified] Pin
Viorel.26-Jun-06 23:54
Viorel.26-Jun-06 23:54 
AnswerRe: problem with string table Pin
sach!!27-Jun-06 0:07
sach!!27-Jun-06 0:07 
GeneralRe: problem with string table Pin
Viorel.27-Jun-06 1:14
Viorel.27-Jun-06 1:14 
GeneralRe: problem with string table Pin
sach!!27-Jun-06 1:31
sach!!27-Jun-06 1:31 
AnswerRe: problem with string table Pin
Hamid_RT27-Jun-06 1:28
Hamid_RT27-Jun-06 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.