Whew now that that confusing Thread Title is done and over with.. I think I explained it correct...
Well... here is my problem..
thats obviously not my exact code, but you get the general idea of what I'm trying to do..Code:RGBQUAD *mColorTable; mColorTable = new RGBQUAD[256]; sizeof(mColorTable);
Additional info: RGBQUAD struct contains 4 member variables.
Therefore the size of mColorTable should be 4 * 256 = 1024.
However, since mColorTable is pointing to the first index in the array the code is returning 4 * 1 = 4.
Obviously i can rid of pointers all together and just use
but I do not know the size of the array until runtime, which is why I am using pointers.Code:RGBQUAD mColorTable[256]; sizeof(mColorTable);
thnx for any help...
P.S. for those wondering I am trying to create a class for loading BITMAPS of various sizes and color depths... this portion is for storing the color table of my BITMAP.. currently I am only able to store the first entry of the color table, which is black meaning all I get when I try and draw my BITMAP is a black screen