Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PCM Pin
Mark Salsbery22-Jan-07 6:32
Mark Salsbery22-Jan-07 6:32 
QuestionConversion from CString[ ] to CStringArray Pin
vikram.vit18-Jan-07 21:01
vikram.vit18-Jan-07 21:01 
AnswerRe: Conversion from CString[ ] to CStringArray Pin
rrrado18-Jan-07 21:15
rrrado18-Jan-07 21:15 
GeneralRe: Conversion from CString[ ] to CStringArray Pin
vikram.vit18-Jan-07 22:13
vikram.vit18-Jan-07 22:13 
GeneralRe: Conversion from CString[ ] to CStringArray Pin
Tony Hill19-Jan-07 0:14
professionalTony Hill19-Jan-07 0:14 
GeneralRe: Conversion from CString[ ] to CStringArray Pin
John R. Shaw19-Jan-07 17:23
John R. Shaw19-Jan-07 17:23 
AnswerRe: Conversion from CString[ ] to CStringArray Pin
Christian Graus18-Jan-07 21:55
protectorChristian Graus18-Jan-07 21:55 
AnswerRe: Conversion from CString[ ] to CStringArray Pin
prasad_som18-Jan-07 22:57
prasad_som18-Jan-07 22:57 
Hmmm.
What about extending CStringArray class ?
class CStringArrayEx: public CStringArray
{
public:
CStringArrayEx(CString*,size_t nSize);
};
#include <Afxtempl.h>
CStringArrayEx::CStringArrayEx(CString* pSrc,size_t nSize):CStringArray()
{
SetSize(nSize);
CopyElements(m_pData, pSrc,nSize);
}

This is quick suggestion. Hasn't put much thought in it.

You can use CStringArrayEx like below,
CString arrString[2]= { "1","2"};
CStringArrayEx objArray(arrString,2);
for (int i = 0; i <2 ;i++)
{
   AfxMessageBox(objArray[i]);
}




Questioncalculate elapsed time Pin
George_George18-Jan-07 20:37
George_George18-Jan-07 20:37 
AnswerRe: calculate elapsed time Pin
Waldermort18-Jan-07 20:54
Waldermort18-Jan-07 20:54 
GeneralRe: calculate elapsed time Pin
George_George18-Jan-07 21:49
George_George18-Jan-07 21:49 
AnswerRe: calculate elapsed time Pin
rrrado18-Jan-07 21:17
rrrado18-Jan-07 21:17 
GeneralRe: calculate elapsed time Pin
George_George18-Jan-07 21:58
George_George18-Jan-07 21:58 
QuestionRe: calculate elapsed time Pin
David Crow19-Jan-07 3:11
David Crow19-Jan-07 3:11 
AnswerRe: calculate elapsed time Pin
George_George19-Jan-07 22:48
George_George19-Jan-07 22:48 
GeneralRe: calculate elapsed time Pin
David Crow20-Jan-07 6:33
David Crow20-Jan-07 6:33 
GeneralRe: calculate elapsed time Pin
George_George20-Jan-07 21:25
George_George20-Jan-07 21:25 
QuestionRe: calculate elapsed time Pin
David Crow22-Jan-07 3:07
David Crow22-Jan-07 3:07 
AnswerRe: calculate elapsed time Pin
George_George22-Jan-07 22:52
George_George22-Jan-07 22:52 
GeneralRe: calculate elapsed time Pin
David Crow23-Jan-07 2:55
David Crow23-Jan-07 2:55 
GeneralRe: calculate elapsed time Pin
George_George23-Jan-07 16:17
George_George23-Jan-07 16:17 
AnswerRe: calculate elapsed time Pin
Roger Stoltz18-Jan-07 21:56
Roger Stoltz18-Jan-07 21:56 
GeneralRe: calculate elapsed time Pin
George_George18-Jan-07 22:07
George_George18-Jan-07 22:07 
GeneralRe: calculate elapsed time Pin
Roger Stoltz18-Jan-07 22:45
Roger Stoltz18-Jan-07 22:45 
GeneralRe: calculate elapsed time Pin
George_George18-Jan-07 23:07
George_George18-Jan-07 23:07 

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.