Click here to Skip to main content
15,888,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Need Help With Calculation Pin
Roger Allen12-Oct-05 13:38
Roger Allen12-Oct-05 13:38 
AnswerRe: Need Help With Calculation Pin
David Crow13-Oct-05 3:19
David Crow13-Oct-05 3:19 
QuestionAccelerator key issue in hosted ActiveX control Pin
Ian Bowler12-Oct-05 12:35
Ian Bowler12-Oct-05 12:35 
QuestionCResourceException Pin
LighthouseJ12-Oct-05 12:08
LighthouseJ12-Oct-05 12:08 
QuestionMultiLingual Resource Pin
jim45612-Oct-05 11:54
jim45612-Oct-05 11:54 
Questionmalloc and free problem. Pin
Jader8912-Oct-05 11:47
Jader8912-Oct-05 11:47 
AnswerRe: malloc and free problem. Pin
Jader8912-Oct-05 11:51
Jader8912-Oct-05 11:51 
AnswerRe: malloc and free problem. Pin
Anonymous12-Oct-05 12:02
Anonymous12-Oct-05 12:02 
Your problem:

// This allocates ONLY 1 byte, why you try to allocate only 1 byte??
data = (char*)malloc(sizeof(char));

// However this is memsetting 4 bytes which is whats causing the problem...
memset( data, 0, sizeof(data) );

// Code should read, only set up 1 byte
memset( data, 0, sizeof(char));


GeneralRe: malloc and free problem. Pin
Jader8912-Oct-05 12:08
Jader8912-Oct-05 12:08 
GeneralRe: malloc and free problem. Pin
LighthouseJ12-Oct-05 12:10
LighthouseJ12-Oct-05 12:10 
AnswerRe: malloc and free problem. Pin
sunit512-Oct-05 20:43
sunit512-Oct-05 20:43 
QuestionVisual C++ .Net Dialog Help Wizard Pin
Cubzfan12-Oct-05 11:14
Cubzfan12-Oct-05 11:14 
QuestionEnumProcesses question Pin
Gary Wheeler12-Oct-05 10:43
Gary Wheeler12-Oct-05 10:43 
AnswerRe: EnumProcesses question Pin
Prakash Nadar12-Oct-05 22:45
Prakash Nadar12-Oct-05 22:45 
GeneralRe: EnumProcesses question Pin
Gary Wheeler13-Oct-05 2:18
Gary Wheeler13-Oct-05 2:18 
AnswerRe: EnumProcesses question Pin
ThatsAlok13-Oct-05 1:38
ThatsAlok13-Oct-05 1:38 
GeneralRe: EnumProcesses question Pin
Gary Wheeler13-Oct-05 2:20
Gary Wheeler13-Oct-05 2:20 
QuestionCreating executable files? Pin
Tara1412-Oct-05 10:34
Tara1412-Oct-05 10:34 
AnswerRe: Creating executable files? Pin
dave_dv12-Oct-05 11:06
dave_dv12-Oct-05 11:06 
QuestionBitmap over video problem (VMR9) Pin
Storm-blade12-Oct-05 10:16
professionalStorm-blade12-Oct-05 10:16 
AnswerRe: Bitmap over video problem (VMR9) Pin
Storm-blade12-Oct-05 11:05
professionalStorm-blade12-Oct-05 11:05 
GeneralRe: Bitmap over video problem (VMR9) Pin
Trollslayer12-Oct-05 21:58
mentorTrollslayer12-Oct-05 21:58 
QuestionAdd color on the Dimmed text of disabled controls? Pin
y22zhou12-Oct-05 9:08
y22zhou12-Oct-05 9:08 
QuestionRe: Add color on the Dimmed text of disabled controls? Pin
David Crow12-Oct-05 9:59
David Crow12-Oct-05 9:59 
Questionadd message to jpeg file Pin
kevincwong12-Oct-05 8:52
kevincwong12-Oct-05 8:52 

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.