When posting question, first you should ensure that my problem is clearly mentioned. because we cannot read your mind or monitor. you posted your code section , that is good. but exactly what is your problem?
This is a simple program. I think in my opinion programming skill will develop through thinking, practice etc.
here your problem is simple. so try to implement self such a problem. i will give the logic.
1. allocate required array size for destination array.
2.copy the content from source array to destination.
I also agree with Richard and pallini
I ported my application from VC6 to VS2010 in mfc.In vc6 , using 8bit indexed bmp as Dialog'Toolbar. But in VS2010,after porting Icons colors are corrupted and not showing icons properly.And Icons which are disabled are hidden. Its showing up only when they get enabled.
So,now m facing two problems:
first,Icons colors are not proper.
Second,its showing background color too. m Guessing that background color only hiding my icons on disable.Its not showing transparency as it is happening with 8bit images.Any Ideas?
I tried by changing bmp to 32 bit then icon'color came fine but other prob still.
Any help will be Appreciated.
Thanks & Regards
Open workspace by VC6 IDE, RC is not loaded and RCF and RCF are display as a file name in workspace but empty，why？how should I do for doing this work well。
Change macro definition as below,result is same
What are you trying to achieve by doing this? ...I don't remember having to edit this file directly ever, you should be able to make any changes regarding project files and compilation changes from the IDE.