by LaVolpe (66 Submissions)
Category: Files/File Controls/Input/Output
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (9 Votes)
Hmmm, another one for usercontrol lovers maybe. I wanted a way for a UC to get the resources from a host's RES file during IDE. This way the UC can use host images and display them during design time. The biggest problem was parsing the res file, the 2nd biggest problem is being able to access it during IDE design, IDE Run, and Compiled all from a UC and not the host. For a UC during IDE, you would need to have a way for the user to supply you the path to their RES file and, in a few days, I will be posting an example of that along with other methods too. The functions in the attached class allow image resources to be extracted as stdPictures or arrays -- this way I can use my c32bppDIB class with it too :)