Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to load gif image under winCE?? Pin
goolie8317-Apr-07 19:00
goolie8317-Apr-07 19:00 
AnswerRe: how to load gif image under winCE?? Pin
Dmitry Khudorozhkov17-Apr-07 19:51
Dmitry Khudorozhkov17-Apr-07 19:51 
GeneralRe: how to load gif image under winCE?? Pin
goolie8317-Apr-07 20:21
goolie8317-Apr-07 20:21 
GeneralRe: how to load gif image under winCE?? Pin
Dmitry Khudorozhkov17-Apr-07 20:56
Dmitry Khudorozhkov17-Apr-07 20:56 
GeneralRe: how to load gif image under winCE?? Pin
goolie8317-Apr-07 21:51
goolie8317-Apr-07 21:51 
GeneralRe: how to load gif image under winCE?? Pin
Dmitry Khudorozhkov18-Apr-07 1:52
Dmitry Khudorozhkov18-Apr-07 1:52 
GeneralRe: how to load gif image under winCE?? Pin
goolie8318-Apr-07 16:46
goolie8318-Apr-07 16:46 
Questioncan these code fragments lead to a memory leak Pin
jossion17-Apr-07 18:38
jossion17-Apr-07 18:38 
I used Visual Memory Leak in my code and it has reported memory leak from files having this code. Can anyone give information as to whether these codes can lead to memory leak or not


************************************
case 1
************************************
sub_code = (char *) calloc(5,sizeof(char));

if(f_decimal_value !=0 )
{
free(sub_code);
sub_code = (char *) calloc(3,sizeof(char));

//additional code here

free(sub_code);
}

else
{

free(sub_code);
sub_code = (char *) calloc(3,sizeof(char));

//additional code here

free(sub_code);
}

*********************************************
case 2
**********************************************

sub_code = (char *)calloc(3,sizeof(char));
char2str(2,sub_code)

if(strcmp(sub_code,"00") == 0)

{
free(sub_code);
//additional code here
}

else if(strcmp(sub_code,"01") == 0)

{

free(sub_code);
//additional code here
}
else if(strcmp(sub_code,"10") == 0)
{

free(sub_code);
//additional code here
}

else if (strcmp(sub_code,"11") == 0)
{
free(sub_code);
//additional code here
}

AnswerRe: can these code fragments lead to a memory leak Pin
Stephen Hewitt17-Apr-07 18:42
Stephen Hewitt17-Apr-07 18:42 
AnswerRe: can these code fragments lead to a memory leak Pin
StevenWh17-Apr-07 20:06
StevenWh17-Apr-07 20:06 
QuestionHow to parse a file and to create a tree view from it??? Pin
syampj17-Apr-07 18:34
syampj17-Apr-07 18:34 
QuestionRe: How to parse a file and to create a tree view from it??? Pin
Hamid_RT17-Apr-07 22:04
Hamid_RT17-Apr-07 22:04 
AnswerRe: How to parse a file and to create a tree view from it??? Pin
syampj18-Apr-07 1:06
syampj18-Apr-07 1:06 
QuestionType conversion Pin
CarpenterJim17-Apr-07 18:15
CarpenterJim17-Apr-07 18:15 
AnswerRe: Type conversion Pin
Rick York17-Apr-07 18:58
mveRick York17-Apr-07 18:58 
GeneralRe: Type conversion Pin
CPallini17-Apr-07 21:10
mveCPallini17-Apr-07 21:10 
GeneralRe: Type conversion Pin
CarpenterJim18-Apr-07 2:18
CarpenterJim18-Apr-07 2:18 
QuestionDLL and Lib Pin
amitmistry_petlad 17-Apr-07 17:45
amitmistry_petlad 17-Apr-07 17:45 
AnswerRe: DLL and Lib Pin
_AnsHUMAN_ 17-Apr-07 18:17
_AnsHUMAN_ 17-Apr-07 18:17 
AnswerRe: DLL and Lib Pin
Eytukan17-Apr-07 20:35
Eytukan17-Apr-07 20:35 
Questionerror in using strcat Pin
cyn817-Apr-07 16:05
cyn817-Apr-07 16:05 
AnswerRe: error in using strcat Pin
David Crow17-Apr-07 16:37
David Crow17-Apr-07 16:37 
AnswerRe: error in using strcat Pin
Stephen Hewitt17-Apr-07 17:21
Stephen Hewitt17-Apr-07 17:21 
AnswerRe: error in using strcat Pin
syampj17-Apr-07 18:31
syampj17-Apr-07 18:31 
QuestionType comparison in if statement Pin
Lasoryth17-Apr-07 13:25
Lasoryth17-Apr-07 13:25 

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.