Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow increase buffer size to read binary data and not damage performance Pin
yefimrz2-May-07 7:34
yefimrz2-May-07 7:34 
QuestionRe: How increase buffer size to read binary data and not damage performance Pin
Mark Salsbery2-May-07 9:19
Mark Salsbery2-May-07 9:19 
AnswerRe: How increase buffer size to read binary data and not damage performance Pin
yefimrz2-May-07 9:54
yefimrz2-May-07 9:54 
GeneralRe: How increase buffer size to read binary data and not damage performance Pin
Mark Salsbery2-May-07 10:20
Mark Salsbery2-May-07 10:20 
QuestionHow to use strcpy to modify char** ? Pin
Joe Smith IX2-May-07 7:24
Joe Smith IX2-May-07 7:24 
AnswerRe: How to use strcpy to modify char** ? Pin
Michael Dunn2-May-07 8:13
sitebuilderMichael Dunn2-May-07 8:13 
AnswerRe: How to use strcpy to modify char** ? Pin
Peter Weyzen2-May-07 8:38
Peter Weyzen2-May-07 8:38 
AnswerRe: How to use strcpy to modify char** ? Pin
toxcct2-May-07 9:22
toxcct2-May-07 9:22 
once again, somebody is using CString::GetBuffer() when it's definitely not needed.

Call GetBuffer() only if you need to modify the CString object directly by writing inside its internal buffer. and this call to GetBuffer() requires a call to ReleaseBuffer() (which you don't do here).

if you only need to get the string contained within the CString, then you must use the cast operator (LPCTSTR) and that's it.

and for your problem, as that's been stated, you're assigning a NULL pointer.
modify your code into this.

ans at last, as i'm on it, please be careful with your variables names (generally, a variable starting with sz or psz is declared being a C-Style string)

const int iSize = 12;
TCHAR *pArrayLabel = ::new TCHAR[iSize];
CString strLabel = _T("Januari");
::_tcscpy_s(pArrayLabel[0], (LPCTSTR)szLabel0);




GeneralRe: How to use strcpy to modify char** ? Pin
Mark Salsbery2-May-07 9:33
Mark Salsbery2-May-07 9:33 
GeneralRe: How to use strcpy to modify char** ? Pin
Michael Dunn2-May-07 11:22
sitebuilderMichael Dunn2-May-07 11:22 
AnswerRe: How to use strcpy to modify char** ? Pin
prasad_som2-May-07 18:33
prasad_som2-May-07 18:33 
QuestionMFC avi Brightness control Pin
YUANGE2-May-07 6:50
YUANGE2-May-07 6:50 
AnswerRe: MFC avi Brightness control Pin
Hamid_RT2-May-07 7:37
Hamid_RT2-May-07 7:37 
Questionsql string format Pin
hero19952-May-07 5:44
hero19952-May-07 5:44 
AnswerRe: sql string format Pin
James R. Twine2-May-07 5:59
James R. Twine2-May-07 5:59 
AnswerRe: sql string format Pin
Hamid_RT2-May-07 7:29
Hamid_RT2-May-07 7:29 
QuestionAFX_MANAGE_STATE Usage? Pin
rajandpayal2-May-07 4:37
rajandpayal2-May-07 4:37 
AnswerRe: AFX_MANAGE_STATE Usage? Pin
Mark Salsbery2-May-07 5:14
Mark Salsbery2-May-07 5:14 
QuestionSafly Remove USB Pin
VC_RYK2-May-07 2:44
VC_RYK2-May-07 2:44 
AnswerRe: Safly Remove USB Pin
Arman S.2-May-07 3:07
Arman S.2-May-07 3:07 
GeneralRe: Safly Remove USB Pin
VC_RYK2-May-07 18:23
VC_RYK2-May-07 18:23 
QuestionHow do I pass a byte array from VC++ to VB? Pin
prcarp2-May-07 2:20
prcarp2-May-07 2:20 
AnswerRe: How do I pass a byte array from VC++ to VB? Pin
Chris Losinger2-May-07 6:38
professionalChris Losinger2-May-07 6:38 
AnswerRe: How do I pass a byte array from VC++ to VB? Pin
lafleon2-May-07 10:20
lafleon2-May-07 10:20 
GeneralRe: How do I pass a byte array from VC++ to VB? Pin
prcarp2-May-07 11:05
prcarp2-May-07 11:05 

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.