Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOn File-> New (Project) Win32 application and MFC wizard Pin
zahid_ash16-Aug-04 19:57
zahid_ash16-Aug-04 19:57 
GeneralRe: On File-> New (Project) Win32 application and MFC wizard Pin
kailai_nishanth16-Aug-04 20:51
kailai_nishanth16-Aug-04 20:51 
GeneralRe: On File-> New (Project) Win32 application and MFC wizard Pin
David Crow17-Aug-04 5:32
David Crow17-Aug-04 5:32 
GeneralRe: Difference Btw Win32 and MFC programming Pin
ThatsAlok17-Aug-04 0:49
ThatsAlok17-Aug-04 0:49 
GeneralCRC/checksum for a group of files Pin
Anthony_Yio16-Aug-04 17:54
Anthony_Yio16-Aug-04 17:54 
GeneralRe: CRC/checksum for a group of files Pin
Antony M Kancidrowski17-Aug-04 0:42
Antony M Kancidrowski17-Aug-04 0:42 
GeneralAnti-alias w/ GDI NOT GDI+ Pin
Tony Teveris16-Aug-04 16:46
Tony Teveris16-Aug-04 16:46 
GeneralHere's a good one. Pin
JD Steffen16-Aug-04 15:58
JD Steffen16-Aug-04 15:58 
WTF | :WTF:
Okay here's a problem I am having:

I create a pointer to a char like so:

char *test = new char;

then I pass that pointer to a class member function which fills it with data from a file. Heres the code for that:

bool FileManager::ReadString(LPSTR StringData)
{
char SingleChar;
bool done = false;

while (done != true)
{
if(ReadData(&SingleChar, 1)==2)
{
return true;
}

switch (SingleChar)
{
case 10:
case 13:
{
done=true;
}break;
default:
{
*StringData = SingleChar;
StringData++;
}break;
}
}
*StringData = 0;
StringData++;
return true;
}

Then afterwards in the function that called the member function I do a:

delete test;

When it runs this piece of code I get:

Debug Error!

Program: c:\JD's Projects\FileManager\Debug\FileManager.exe

DAMAGE: after Normal block (#38) at 0x00851FC0.

Any Ideas?

thanks,
JD
GeneralRe: Here's a good one. Pin
Rory Solley16-Aug-04 21:27
Rory Solley16-Aug-04 21:27 
GeneralWinsock 2: Local IP address Pin
wooden0jesus16-Aug-04 14:25
wooden0jesus16-Aug-04 14:25 
GeneralRe: Winsock 2: Local IP address Pin
Antony M Kancidrowski16-Aug-04 22:56
Antony M Kancidrowski16-Aug-04 22:56 
GeneralRegRestoreKey huge delay on 2003 Pin
farby16-Aug-04 11:57
farby16-Aug-04 11:57 
GeneralProject Suggestions Pin
Archer28216-Aug-04 11:55
Archer28216-Aug-04 11:55 
GeneralRe: Project Suggestions Pin
Christian Graus16-Aug-04 12:16
protectorChristian Graus16-Aug-04 12:16 
GeneralRe: Project Suggestions Pin
David Crow17-Aug-04 3:38
David Crow17-Aug-04 3:38 
GeneralUsing a templated CView class with the MDI or SDI framework Pin
BAmity16-Aug-04 11:50
BAmity16-Aug-04 11:50 
GeneralLocking a combobox and handling CFormView closing Pin
BlackDice16-Aug-04 11:34
BlackDice16-Aug-04 11:34 
GeneralRe: Locking a combobox and handling CFormView closing Pin
David Crow17-Aug-04 3:55
David Crow17-Aug-04 3:55 
GeneralRe: Locking a combobox and handling CFormView closing Pin
BlackDice17-Aug-04 5:11
BlackDice17-Aug-04 5:11 
GeneralRe: Locking a combobox and handling CFormView closing Pin
David Crow17-Aug-04 5:51
David Crow17-Aug-04 5:51 
GeneralVisual C++ start problem...delay Pin
GuimaSun16-Aug-04 9:17
GuimaSun16-Aug-04 9:17 
GeneralRe: Visual C++ start problem...delay Pin
David Crow16-Aug-04 10:24
David Crow16-Aug-04 10:24 
GeneralRe: Visual C++ start problem...delay Pin
nnvidya16-Aug-04 23:03
nnvidya16-Aug-04 23:03 
GeneralRe: Visual C++ start problem...delay Pin
David Crow17-Aug-04 3:20
David Crow17-Aug-04 3:20 
GeneralRe: Visual C++ start problem...delay Pin
GuimaSun17-Aug-04 3:55
GuimaSun17-Aug-04 3:55 

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.