am using Visual C++ and win32. The program is C++ and does not use the forms.
I created "pictures.RESX" file using the Resourcer program. The namespace name is instruction.resource
This created a file which contains all my bitmap files.
I have also managed to include this into my program using the resource facility in Visual C++ . I can view the bitmap files using the resource viewer.
What I am trying to do at the moment is access these bitmap files in the program. I have created a toolbar which I have used standard buttons and bitmaps. I now want to use my own bitmaps for the buttons.
I saw an example where I was told to define the bitmaps as:-
This is the code I am using what I am not sure of is do I need to address the bitmap files as part of the resource file "pictures.RESX" . This is being compiled into the Exe file.
I have been told that the tbab.nID is wrong and that tabb[0] should refere to an index of the bitmaps. How should I correct this. Do I need to define the resource filename in the program or will the names in the resource file be available (Btmp0.bmp,Btmp1.bmp,Btmp2.bmp etc)
am using Visual C++ and win32. The program is C++ and does not use the forms.
So it is no C++/CLI program. I have seen you already have a thread on that topic over there in the Visual C++ forum (and got an answer there). This is the right place for the thread, so why don't you continue there?
Bookmarks