|
From: Id K. <dav...@ro...> - 2003-07-09 05:28:43
|
Hi, I'm trying to understand the source code of this version of
StarControl and I'm surprised (perhaps I shouldn't be) by how complex it is.
I'll start with a simple to help me going, if you don't mind.
I don't understand the resource system. You pass into LoadGraphic() an
integer that represents the image you want and you get another integer. In
fact, LoadGraphric() simply turns around and calls GetResource() passing
your integer and returning a handle of some kind.
Where do these resources come from? How does the resource system
translate an integer into a handle? I'm kind of embarrased to ask this next
question but what is this handle? How does this generic handle get turned
into something useful?
Thank you so much for your help. I would very much like to understand
this code...
|