Click here to Skip to main content
15,896,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Returning A String Array Pin
CPallini26-Jun-07 22:52
mveCPallini26-Jun-07 22:52 
QuestionHow to make drop down part of toolbar button more wider? Pin
Padmanabh Sharma26-Jun-07 22:30
Padmanabh Sharma26-Jun-07 22:30 
QuestionMS-Word text into clipboard Pin
baerten26-Jun-07 21:45
baerten26-Jun-07 21:45 
AnswerRe: MS-Word text into clipboard Pin
Hamid_RT26-Jun-07 22:04
Hamid_RT26-Jun-07 22:04 
QuestionModifing values of list control.... Pin
neha.agarwal2726-Jun-07 21:22
neha.agarwal2726-Jun-07 21:22 
AnswerRe: Modifing values of list control.... Pin
Jhony george26-Jun-07 21:47
Jhony george26-Jun-07 21:47 
AnswerRe: Modifing values of list control.... Pin
Hamid_RT26-Jun-07 22:07
Hamid_RT26-Jun-07 22:07 
QuestionHelp to solve the problem of memory Pin
James_Programmer26-Jun-07 21:03
James_Programmer26-Jun-07 21:03 
Hi, all
Any one can please help me out to solve the below problem
Below is my code in the execution it shows me assertion Failed


The Error dialog stating that

Debug Error!

DAMAGE: after normal block (#1050693) at 0x01486430.

Following is my whole code:::

char* pszBuffer = NULL;
DWORD dwLen = GetLogicalDriveStrings( 0, pszBuffer);
if ( dwLen == 0)
return;
dwLen += 1;
pszBuffer = new char [dwLen];
GetLogicalDriveStrings( dwLen, pszBuffer);
int nPos = 0;
do
{
int nItem =0;
GetDriveData( pszBuffer + nPos, nItem);
nPos += (strlen( pszBuffer + nPos) + 1);
} while ( strlen( pszBuffer + nPos) > 0);
free ( pszBuffer);


So can you please help me out what is the problem in the above code.


Thanks in advance!!!!
AnswerRe: Help to solve the problem of memory Pin
Nibu babu thomas26-Jun-07 21:19
Nibu babu thomas26-Jun-07 21:19 
AnswerRe: Help to solve the problem of memory Pin
KarstenK26-Jun-07 21:24
mveKarstenK26-Jun-07 21:24 
Questionconcept of uploading... Pin
tasumisra26-Jun-07 20:56
tasumisra26-Jun-07 20:56 
AnswerRe: concept of uploading... Pin
_AnsHUMAN_ 26-Jun-07 21:50
_AnsHUMAN_ 26-Jun-07 21:50 
GeneralRe: concept of uploading... Pin
tasumisra26-Jun-07 22:04
tasumisra26-Jun-07 22:04 
AnswerRe: concept of uploading... Pin
Mark Salsbery27-Jun-07 6:07
Mark Salsbery27-Jun-07 6:07 
GeneralRe: concept of uploading... Pin
tasumisra29-Jun-07 6:12
tasumisra29-Jun-07 6:12 
GeneralRe: concept of uploading... Pin
Mark Salsbery2-Jul-07 13:44
Mark Salsbery2-Jul-07 13:44 
AnswerRe: concept of uploading... Pin
Moak29-Jun-07 1:26
Moak29-Jun-07 1:26 
QuestionHow to close a user created message box without effecting the parent window Pin
msr_codeproject26-Jun-07 20:41
msr_codeproject26-Jun-07 20:41 
AnswerRe: How to close a user created message box without effecting the parent window Pin
Jhony george26-Jun-07 21:43
Jhony george26-Jun-07 21:43 
GeneralRe: How to close a user created message box without effecting the parent window Pin
msr_codeproject26-Jun-07 23:29
msr_codeproject26-Jun-07 23:29 
AnswerRe: How to close a user created message box without effecting the parent window Pin
prasad_som27-Jun-07 1:31
prasad_som27-Jun-07 1:31 
GeneralRe: How to close a user created message box without effecting the parent window Pin
msr_codeproject27-Jun-07 2:05
msr_codeproject27-Jun-07 2:05 
QuestionHow to forward delare CArray class ? Pin
VCSharp00726-Jun-07 20:21
VCSharp00726-Jun-07 20:21 
AnswerRe: How to forward delare CArray class ? Pin
CPallini26-Jun-07 20:50
mveCPallini26-Jun-07 20:50 
AnswerRe: How to forward delare CArray class ? Pin
Nibu babu thomas26-Jun-07 21:00
Nibu babu thomas26-Jun-07 21:00 

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.