Question on Loading Resources
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
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement