Click here to Skip to main content
15,914,279 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I get CD-ROM's data struction (ISO 9660)? Pin
MeteOS325-Nov-02 1:13
MeteOS325-Nov-02 1:13 
GeneralTransmitFile API Pin
Suren21-Nov-02 21:42
Suren21-Nov-02 21:42 
GeneralRe: TransmitFile API Pin
User 665821-Nov-02 22:20
User 665821-Nov-02 22:20 
GeneralRe: TransmitFile API Pin
Suren21-Nov-02 22:27
Suren21-Nov-02 22:27 
GeneralRe: TransmitFile API Pin
Joao Vaz22-Nov-02 1:09
Joao Vaz22-Nov-02 1:09 
Questionhelp!! how to multi-process? Pin
gab@work21-Nov-02 21:06
gab@work21-Nov-02 21:06 
AnswerRe: help!! how to multi-process? Pin
Joao Vaz21-Nov-02 22:17
Joao Vaz21-Nov-02 22:17 
GeneralResizing an array in C Pin
Kevin Power21-Nov-02 20:42
Kevin Power21-Nov-02 20:42 
Okay, this doesn't have to do with resizing (shrinking/expanding) array using CArray or anything. This is in good old C. Anybody know how I can possibly do this? Confused | :confused: I need to read strings from a file into an array, but I need to be able to resize it if it goes over 'x' elements or if I don't fill up 'x' elements, I can free the remaining unused elements. For example,
<br />
int array_size = 100;<br />
char mystupidarray[array_size];<br />
/* Open the file and being reading operation             */<br />
/* each pass reading checks to see if 'elements_counter' */<br />
/* has not surpassed 'array_size'                        */<br />
...<br />
if( element_counter > array_size)<br />
{<br />
      /* resize array to 200 elements */<br />
      /* note the change in 'array_size' variable */<br />
}<br />
else if( element_counter < array_size )<br />
{<br />
      /* find the different between 'element_counter' & 'array_size' */<br />
      /* free 'y' elements from 'mystupidarray[]' to save headroom   */<br />
}<br />
...<br />
/* Everything is now stored in the array so the file is no longer needed.  */<br />


So do you catch my drift?? Sorry, I kind of think better sometimes if I can show a basic idea of what I'm trying to get at in code. I've searched some books, but haven't found what I'm looking for. So I, being part of CP.com, though I could post it here. Any hints, suggestions, flames (erk!) will be greatly appreciated.


Kevin P., stabbing the harlet to pay for her sins, leaving the virgin.
GeneralRe: Resizing an array in C Pin
jhwurmbach21-Nov-02 20:54
jhwurmbach21-Nov-02 20:54 
GeneralRe: Resizing an array in C Pin
Roger Allen21-Nov-02 21:33
Roger Allen21-Nov-02 21:33 
GeneralRe: Resizing an array in C Pin
Anonymous21-Nov-02 22:41
Anonymous21-Nov-02 22:41 
GeneralRe: Resizing an array in C Pin
Kevin Power22-Nov-02 21:23
Kevin Power22-Nov-02 21:23 
GeneralRe: Resizing an array in C Pin
KarstenK22-Nov-02 1:30
mveKarstenK22-Nov-02 1:30 
GeneralRe: Resizing an array in C Pin
uwemundry22-Nov-02 17:50
sussuwemundry22-Nov-02 17:50 
GeneralCreateWindow in dll Pin
suresh_sathya21-Nov-02 20:23
suresh_sathya21-Nov-02 20:23 
QuestionHow to access protected member of CDockBar Pin
MaTrIX2k221-Nov-02 19:40
MaTrIX2k221-Nov-02 19:40 
AnswerRe: How to access protected member of CDockBar Pin
Christian Graus21-Nov-02 20:23
protectorChristian Graus21-Nov-02 20:23 
GeneralRe: How to access protected member of CDockBar Pin
MaTrIX2k222-Nov-02 7:37
MaTrIX2k222-Nov-02 7:37 
GeneralRe: How to access protected member of CDockBar Pin
Christian Graus22-Nov-02 9:37
protectorChristian Graus22-Nov-02 9:37 
GeneralRe: How to access protected member of CDockBar Pin
MaTrIX2k222-Nov-02 17:25
MaTrIX2k222-Nov-02 17:25 
GeneralRe: How to access protected member of CDockBar Pin
Christian Graus22-Nov-02 17:27
protectorChristian Graus22-Nov-02 17:27 
GeneralRe: How to access protected member of CDockBar Pin
MaTrIX2k222-Nov-02 17:29
MaTrIX2k222-Nov-02 17:29 
GeneralRe: How to access protected member of CDockBar Pin
Christian Graus22-Nov-02 17:33
protectorChristian Graus22-Nov-02 17:33 
Questionhow i can enter date of birth in access record through ADO Pin
kami39421-Nov-02 19:13
kami39421-Nov-02 19:13 
GeneralWin32 Functions in MAPI Developement for sending EMails Pin
kishore102121-Nov-02 18:49
kishore102121-Nov-02 18:49 

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.