I'm wondering if this is possible....
Like creating an dll in vb...
then add a resource file with some bmp's...
then compile the dll...
and then load from the exe the resources that
are contained within the .dll
thnx in advance...
Printable View
I'm wondering if this is possible....
Like creating an dll in vb...
then add a resource file with some bmp's...
then compile the dll...
and then load from the exe the resources that
are contained within the .dll
thnx in advance...
Yes!
Right, the easiest way to get you started is:
download this sample from MSDN (resfile.exe)
http://support.microsoft.com/support.../Q194/4/09.ASP
open the project
add a projet (activeX dll)
remove resfile.bas, and resfile.RES from the original project and add the to the activeXdll.
Cut all the functions from resfile.bas and paste them into class1.
this should leave just the 2 API declarations in resfile.bas
Compile the dll as myRes.dll
in the frmSaveRes add Dim obj As Object in the declaration section
put Set obj = CreateObject("myres.class1") as the first line in form load
sprinkle obj. around the rest of the form where required
eg: obj.LoadPictureResource
run
test
modify as required
post reply to vb-world saying "thanks bud!"
well... i would.. if it worked.. but it doesn't :(Quote:
Originally posted by Mark Sreeves
post reply to vb-world saying "thanks bud!"
it says "Active-X component can't create object"
do you know a solution?
[Edited by D!SiLLUSiON on 07-11-2000 at 11:25 AM]
ooooh I see it.. i have to rename the active-x dll project to myRes for it to work....
so then again..
Thanks Bud! :)