Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can stor a listbox strings with serialization? Pin
David Crow12-Apr-04 9:13
David Crow12-Apr-04 9:13 
AnswerRe: How can stor a listbox strings with serialization? Pin
Ravi Bhavnani12-Apr-04 9:09
professionalRavi Bhavnani12-Apr-04 9:09 
GeneralNot able to navigate data between vc++ project and USB device. Pin
Pankaj Bhalla12-Apr-04 2:59
Pankaj Bhalla12-Apr-04 2:59 
GeneralRe: Not able to navigate data between vc++ project and USB device. Pin
Darshan Jani12-Apr-04 7:21
Darshan Jani12-Apr-04 7:21 
GeneralRe: Not able to navigate data between vc++ project and USB device. Pin
Pankaj Bhalla13-Apr-04 0:15
Pankaj Bhalla13-Apr-04 0:15 
GeneralGDI Pin
Ni@m12-Apr-04 2:42
Ni@m12-Apr-04 2:42 
GeneralRe: GDI Pin
Indrawati12-Apr-04 2:50
Indrawati12-Apr-04 2:50 
Generalfreeing memory for an array Pin
kfaday12-Apr-04 2:38
kfaday12-Apr-04 2:38 
I've got a char array

<br />
char *vec;<br />


and i allocate memory for a number of elemets

<br />
vec = (char*) malloc ((sizeof(char))*(number_of_elemets));<br />


i do that in main.
then i call a free function

<br />
free_mem (vec);<br />


the function code is:

<br />
void free_mem (char *vec,number_of _elements)<br />
{   <br />
        for (i=0;i<(number_of _elements);i++)<br />
	{<br />
                 	free (vec[i]);<br />
	}<br />
}<br />


it gives me errors
what's wrong?
thanks!!
GeneralRe: freeing memory for an array Pin
Anonymous12-Apr-04 2:45
Anonymous12-Apr-04 2:45 
GeneralRe: freeing memory for an array Pin
kfaday12-Apr-04 2:49
kfaday12-Apr-04 2:49 
GeneralRe: freeing memory for an array Pin
Indrawati12-Apr-04 2:53
Indrawati12-Apr-04 2:53 
GeneralRe: freeing memory for an array Pin
David Crow12-Apr-04 3:43
David Crow12-Apr-04 3:43 
QuestionDependency Walker lists a DLL as missing. However, program works without Error. Why? Pin
Tony Westminster12-Apr-04 2:26
Tony Westminster12-Apr-04 2:26 
AnswerRe: Dependency Walker lists a DLL as missing. However, program works without Error. Why? Pin
David Crow12-Apr-04 3:47
David Crow12-Apr-04 3:47 
GeneralRe: Dependency Walker lists a DLL as missing. However, program works without Error. Why? Pin
Tony Westminster12-Apr-04 3:55
Tony Westminster12-Apr-04 3:55 
GeneralRe: Dependency Walker lists a DLL as missing. However, program works without Error. Why? Pin
David Crow12-Apr-04 4:01
David Crow12-Apr-04 4:01 
GeneralRe: Dependency Walker lists a DLL as missing. However, program works without Error. Why? Pin
Tony Westminster12-Apr-04 4:35
Tony Westminster12-Apr-04 4:35 
GeneralRe: Dependency Walker lists a DLL as missing. However, program works without Error. Why? Pin
David Crow12-Apr-04 5:15
David Crow12-Apr-04 5:15 
GeneralRe: Dependency Walker lists a DLL as missing. However, program works without Error. Why? Pin
Prakash Nadar12-Apr-04 4:01
Prakash Nadar12-Apr-04 4:01 
AnswerRe: Dependency Walker lists a DLL as missing. However, program works without Error. Why? Pin
Tim Smith12-Apr-04 6:26
Tim Smith12-Apr-04 6:26 
GeneralNewbie GDI question Pin
Indrawati12-Apr-04 2:21
Indrawati12-Apr-04 2:21 
GeneralRe: Newbie GDI question Pin
David Crow12-Apr-04 3:53
David Crow12-Apr-04 3:53 
GeneralFile reading Pin
perozbabu12-Apr-04 2:10
perozbabu12-Apr-04 2:10 
GeneralRe: File reading Pin
David Crow12-Apr-04 3:58
David Crow12-Apr-04 3:58 
GeneralForm Width/Height &amp; Pointer problem Pin
uus9912-Apr-04 2:02
uus9912-Apr-04 2:02 

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.