@Uhwerk:

Im not using handles because i guess i didnt know to. As well, a handle points to a global engine object such as a golbal panel, string or bitmap right?

im using structs because im reading all the items for the game from a text file. There is an unknown number of objects, so i use malloc to grab as much memory as i need. If i use global panel and string arrays, i would have these huge arrays that i'd end up only using like half of.

Granted, if the only way i can save a string, panel, or bmap is to make it global and use handles, then i guess ill just have to put up with huge arrays. I would dearly love a more sleek solution, though.

@Paracharlie:

you are using sys_malloc instead of malloc? what exactly is the difference? and what does the call to memset() do? ive never heard of that function.