I have been struggling for a long time trying different sizeof algorithms ive made up to find out how many objects are in the array. How can i do this??? I used sample code from charlez petzolds book and i have used the same algorithm and it works in his but not mine. so please help.