Click here to Skip to main content
15,919,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What will be the output Pin
Dieghito11-Mar-08 6:14
Dieghito11-Mar-08 6:14 
GeneralRe: What will be the output Pin
CPallini11-Mar-08 6:19
mveCPallini11-Mar-08 6:19 
GeneralRe: What will be the output Pin
Dieghito11-Mar-08 6:27
Dieghito11-Mar-08 6:27 
GeneralRe: What will be the output Pin
Maxwell Chen11-Mar-08 6:38
Maxwell Chen11-Mar-08 6:38 
AnswerRe: What will be the output Pin
Rajkumar R11-Mar-08 6:40
Rajkumar R11-Mar-08 6:40 
GeneralRe: What will be the output Pin
CPallini11-Mar-08 6:42
mveCPallini11-Mar-08 6:42 
GeneralRe: What will be the output Pin
Maxwell Chen11-Mar-08 6:55
Maxwell Chen11-Mar-08 6:55 
GeneralRe: What will be the output Pin
Rajkumar R11-Mar-08 6:59
Rajkumar R11-Mar-08 6:59 
GeneralRe: What will be the output Pin
Maxwell Chen11-Mar-08 7:15
Maxwell Chen11-Mar-08 7:15 
GeneralRe: What will be the output Pin
Rajkumar R11-Mar-08 6:43
Rajkumar R11-Mar-08 6:43 
GeneralRe: What will be the output Pin
CPallini11-Mar-08 6:53
mveCPallini11-Mar-08 6:53 
Generaltemplate argument Pin
George_George11-Mar-08 2:24
George_George11-Mar-08 2:24 
GeneralRe: template argument Pin
Rajkumar R11-Mar-08 2:35
Rajkumar R11-Mar-08 2:35 
GeneralRe: template argument Pin
George_George11-Mar-08 2:44
George_George11-Mar-08 2:44 
GeneralPlay avi on status bar via thread Pin
ptr_Electron11-Mar-08 1:40
ptr_Electron11-Mar-08 1:40 
GeneralRe: Play avi on status bar via thread Pin
Rajkumar R11-Mar-08 3:28
Rajkumar R11-Mar-08 3:28 
GeneralRe: Play avi on status bar via thread Pin
ptr_Electron11-Mar-08 4:08
ptr_Electron11-Mar-08 4:08 
QuestionRe: Play avi on status bar via thread Pin
Rajkumar R11-Mar-08 4:10
Rajkumar R11-Mar-08 4:10 
GeneralRe: Play avi on status bar via thread Pin
Rajkumar R11-Mar-08 5:57
Rajkumar R11-Mar-08 5:57 
QuestionHow to convert char** to char array Pin
Gofur Halmurat11-Mar-08 1:33
Gofur Halmurat11-Mar-08 1:33 
AnswerRe: How to convert char** to char array Pin
Maxwell Chen11-Mar-08 2:17
Maxwell Chen11-Mar-08 2:17 
GeneralRe: How to convert char** to char array Pin
Gofur Halmurat11-Mar-08 2:31
Gofur Halmurat11-Mar-08 2:31 
QuestionRe: How to convert char** to char array Pin
Rajkumar R11-Mar-08 2:45
Rajkumar R11-Mar-08 2:45 
GeneralRe: How to convert char** to char array Pin
Gofur Halmurat11-Mar-08 2:48
Gofur Halmurat11-Mar-08 2:48 
GeneralRe: How to convert char** to char array Pin
Rajkumar R11-Mar-08 5:40
Rajkumar R11-Mar-08 5:40 
Gofur Halmurat wrote:
i call splitString() function with char** parametr.

with char**, you mean simply typecast type of multidimentional array of characters or array of pointers to array. Both cannot be interchanged.

char aString[10][10] = {"Test1", "Test2", "Test3"};
char *aString2[10] = {"Test1", "Test2", "Test3"};
former uses contigious buffer while later stores pointers to some other location. So you have to be sure what kind of data the function expects.

in your example any way you can type cast like this.

char (*localString)[10][10];
localString = reinterpret_cast<char (*)[10][10]>(aString); note astring should be a multidimentional array as in your example.

if you are really expecting the muldimensional array, restrict the user by using the array in function argument.

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.