Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion Failed due to image list Pin
jhwurmbach12-Aug-03 23:07
jhwurmbach12-Aug-03 23:07 
GeneralRe: Debug Assertion Failed due to image list Pin
Binayak13-Aug-03 7:22
Binayak13-Aug-03 7:22 
GeneralRe: Debug Assertion Failed due to image list Pin
jhwurmbach13-Aug-03 21:13
jhwurmbach13-Aug-03 21:13 
GeneralRe: Debug Assertion Failed due to image list Pin
Binayak14-Aug-03 7:21
Binayak14-Aug-03 7:21 
GeneralGetting size of array in a func ! Pin
Hadi Rezaee12-Aug-03 12:19
Hadi Rezaee12-Aug-03 12:19 
GeneralRe: Getting size of array in a func ! Pin
Dave Bryant12-Aug-03 12:28
Dave Bryant12-Aug-03 12:28 
GeneralRe: Getting size of array in a func ! Pin
Hadi Rezaee12-Aug-03 13:03
Hadi Rezaee12-Aug-03 13:03 
GeneralRe: Getting size of array in a func ! Pin
FlyingDancer12-Aug-03 15:39
FlyingDancer12-Aug-03 15:39 
Here is my thought about your array:

The elements can be linked together,so it is a link list, is it
Maximal index of your array can be used to count the array's size
why do you want to count it in that way?
Here are two ways to find the size of the array
1.Add a function to count the size by using the property of link list like the following:
CountSize(Ietm array)
{
int count=1;
while(array->item!=NULL)
{
count++;
array->item=array->item->item;
}
return count;
}
2.Get the size directly by its maximal index
Maybe it is not very OK.
Smile | :)
GeneralRe: Getting size of array in a func ! Pin
jhwurmbach12-Aug-03 23:11
jhwurmbach12-Aug-03 23:11 
GeneralGDI: Background image Pin
Hosam Aly Mahmoud12-Aug-03 11:57
Hosam Aly Mahmoud12-Aug-03 11:57 
GeneralRe: GDI: Background image Pin
HPSI12-Aug-03 13:15
HPSI12-Aug-03 13:15 
GeneralRe: GDI: Background image Pin
Hosam Aly Mahmoud12-Aug-03 17:54
Hosam Aly Mahmoud12-Aug-03 17:54 
GeneralRe: GDI: Background image Pin
Anonymous12-Aug-03 14:18
Anonymous12-Aug-03 14:18 
GeneralRe: GDI: Background image Pin
Hosam Aly Mahmoud12-Aug-03 17:59
Hosam Aly Mahmoud12-Aug-03 17:59 
GeneralMemory Pin
Hosam Aly Mahmoud12-Aug-03 11:53
Hosam Aly Mahmoud12-Aug-03 11:53 
GeneralRe: Memory Pin
John M. Drescher12-Aug-03 12:32
John M. Drescher12-Aug-03 12:32 
GeneralRe: Memory Pin
Hosam Aly Mahmoud12-Aug-03 18:12
Hosam Aly Mahmoud12-Aug-03 18:12 
GeneralRe: Memory (EDITED) Pin
John M. Drescher12-Aug-03 19:15
John M. Drescher12-Aug-03 19:15 
GeneralRe: Memory (EDITED) Pin
Hosam Aly Mahmoud16-Aug-03 17:34
Hosam Aly Mahmoud16-Aug-03 17:34 
GeneralRe: Memory (EDITED) Pin
John M. Drescher17-Aug-03 17:47
John M. Drescher17-Aug-03 17:47 
GeneralRe: Memory (EDITED) Pin
Hosam Aly Mahmoud17-Aug-03 18:09
Hosam Aly Mahmoud17-Aug-03 18:09 
GeneralRe: Memory (EDITED) Pin
John M. Drescher17-Aug-03 18:53
John M. Drescher17-Aug-03 18:53 
GeneralRe: Memory (EDITED) Pin
Hosam Aly Mahmoud17-Aug-03 21:37
Hosam Aly Mahmoud17-Aug-03 21:37 
GeneralRe: Memory Pin
Dave Bryant12-Aug-03 12:33
Dave Bryant12-Aug-03 12:33 
GeneralRe: Memory Pin
Hosam Aly Mahmoud12-Aug-03 18:15
Hosam Aly Mahmoud12-Aug-03 18:15 

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.