Advertisement

Question on Loading Resources

Started by January 07, 2001 03:34 PM
0 comments, last by the_better_nick 24 years ago
I recently switched from Borland to MV6, and now I have no idea how to load resouces. I have tried adding my .rc file to my project and using the basic LoadIcon(HINSTANCE, object), etc. What is it I need to do? Thanks ·†§ Nick §† ·
·†§ Nick §† ·
You might need to use the MAKEINTRESOURCE macro. As in

wc.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON));

This is assuming you have a WNDCLASS struct declared as wc and that you've initialised the other members too.


Edited by - NuffSaid on January 8, 2001 5:25:53 AM
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.

This topic is closed to new replies.

Advertisement