-
clearing resources
Hi, if I have a structure with an HBITMAP in it would I have to delete the HBITMAP when the program ends and if so how?
for example if i have a structure like below:
struct advertisment
{
HBITMAP banner;
char bannerSite[150];
};
advertisment bannerAdd;
would I delete the bitmap like below?
DeleteObject(bannerAdd.banner)
-
That should do it.......but remember that freeing the resource at the end of the program is only a notional act as the system will free all resources when it destroys the process....so dont worry about your resource clogging up system memory somewhere.....