Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to add a lineat the beginnig of a file? Pin
David Crow15-Dec-04 4:08
David Crow15-Dec-04 4:08 
Questionhow to read resource info from an exe file directly? Pin
includeh1014-Dec-04 22:46
includeh1014-Dec-04 22:46 
AnswerRe: how to read resource info from an exe file directly? Pin
David Crow15-Dec-04 4:08
David Crow15-Dec-04 4:08 
GeneralNeed help playing sound with DirectSound Pin
rikkemus14-Dec-04 22:34
rikkemus14-Dec-04 22:34 
GeneralConvert MFC Program inot a Class Pin
sweep12314-Dec-04 21:55
sweep12314-Dec-04 21:55 
GeneralRe: Convert MFC Program inot a Class Pin
Maximilien15-Dec-04 2:14
Maximilien15-Dec-04 2:14 
GeneralRe: Convert MFC Program inot a Class Pin
sweep12315-Dec-04 5:48
sweep12315-Dec-04 5:48 
GeneralMemory Overwrite Pin
vilmer14-Dec-04 21:55
vilmer14-Dec-04 21:55 
Hi,
I have noticed a strange behaviour in my app.
I have 4 staic items:

static char* manuf[512];
static int link_man[512];
static char* comp[128];
static CDatasheet DS;

where CDatasheet is a class derived from CObject.

Filling in the manuf array, when I reach the 264th item, the app starts overwriting the memory space allocated for the DS object. So any assignment operation to that object produces an error.

Any suggestion?

Another question:

I tried to remove the DS object (commented out), but the compiler still build the app. I parsed all my files, but there are no other declaration for that object. What can it be happened?

Thanks

Dwarfpower
GeneralRe: Memory Overwrite Pin
Cedric Moonen14-Dec-04 22:48
Cedric Moonen14-Dec-04 22:48 
GeneralRe: Memory Overwrite Pin
vilmer15-Dec-04 1:36
vilmer15-Dec-04 1:36 
QuestionWhy does reading a string cause errors? Pin
tpndtbk14-Dec-04 21:35
tpndtbk14-Dec-04 21:35 
AnswerRe: Why does reading a string cause errors? Pin
Budric B.15-Dec-04 3:42
Budric B.15-Dec-04 3:42 
Questionhow to compress audio data Pin
yingkou14-Dec-04 21:32
yingkou14-Dec-04 21:32 
AnswerRe: how to compress audio data Pin
rikkemus14-Dec-04 22:55
rikkemus14-Dec-04 22:55 
GeneralRe: how to compress audio data Pin
yingkou14-Dec-04 23:47
yingkou14-Dec-04 23:47 
GeneralRe: how to compress audio data Pin
rikkemus15-Dec-04 8:41
rikkemus15-Dec-04 8:41 
AnswerRe: how to compress audio data Pin
markkuk15-Dec-04 0:01
markkuk15-Dec-04 0:01 
QuestionHow to Use Dll in VC++ Pin
SivaramanDhamodharan14-Dec-04 19:12
SivaramanDhamodharan14-Dec-04 19:12 
AnswerRe: How to Use Dll in VC++ Pin
vishalmore14-Dec-04 22:13
vishalmore14-Dec-04 22:13 
GeneralRe: How to Use Dll in VC++ Pin
SivaramanDhamodharan14-Dec-04 23:19
SivaramanDhamodharan14-Dec-04 23:19 
GeneralBad Dll calling convention Pin
kk_vc14-Dec-04 17:49
kk_vc14-Dec-04 17:49 
GeneralRe: Bad Dll calling convention Pin
Ryan Binns14-Dec-04 17:51
Ryan Binns14-Dec-04 17:51 
Generalwrite to a text file Pin
dex_ter1114-Dec-04 17:47
dex_ter1114-Dec-04 17:47 
GeneralRe: write to a text file Pin
vishalmore14-Dec-04 17:56
vishalmore14-Dec-04 17:56 
GeneralRe: write to a text file Pin
dex_ter1114-Dec-04 19:01
dex_ter1114-Dec-04 19:01 

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.