Advertisement

Importing DLL resources, w/out MFC

Started by February 22, 2001 08:29 PM
1 comment, last by cliffhawkens 23 years, 11 months ago
I've looked all over; MSDN's online documentation says to consult my compiler's manual (unfortunately I only have MSVC++ Intro Ed., and the documentation refuses to install), and other sites I've looked at showed how to do it only with MFC, which I'm not remotely interested in....so my question is this; HOW THE HECK DO YOU IMPORT RESOURCES FROM DLL'S????? Thanks for putting up with me =o) (o= erydo =o) Edited by - cliffhawkens on February 22, 2001 9:48:17 PM
[email=erydo@gdnmail.net" style="color: #ff0000; text-decoration:none; cursor:help;](o= erydo =o)[/email]
Can it be this easy?...

  HINSTANCE hInst = LoadLibrary("MyLib.DLL");LoadIcon(hInst, MAKEINTRESOURCE(IDI_APP))  


I didn''t try it yet - but should work...


Advertisement
You''re probably right; I''ll give it a shot =o)

The reason I needed to know was that I was going to make an editor, where there were two main files; the actual .exe, and a .dat file that had the filenames of the installed dlls; when the program was executed, it would load the .dat file and load all the named dlls as plugins, that way you could just make a dll, edit the .dat file, and bam, you''d have more functionality; I just needed a way to load the resources for wizards and such =o)
[email=erydo@gdnmail.net" style="color: #ff0000; text-decoration:none; cursor:help;](o= erydo =o)[/email]

This topic is closed to new replies.

Advertisement