Thaks for the answer. I created a menu (IDR_P), and I thought that loading it would do all the aforementioned, or what is the point in using creating Menu resources?
Of course if I can't get around it, i will use the method you suggested I just thought that using a resource would be simpler. Thanks again.
iCountor is counting 4-byte integers and you want the pChunk pointer to advance by 4 bytes, however aBytes is a char pointer, so adding iCountor to it is not correct. You should use one of these: pChunk = (CHUNKS*) (aBytes + 4*iCountor); pChunk = ((CHUNKS*)aBytes) + iCountor;