How do I access gif / jpeg files with the resource file ? Is there a better way of storing files together than the resouce file ?
also is it possible to dimention a listbox without adding the control to a form ? e.g. use in in a module ?
Thanks
Printable View
How do I access gif / jpeg files with the resource file ? Is there a better way of storing files together than the resouce file ?
also is it possible to dimention a listbox without adding the control to a form ? e.g. use in in a module ?
Thanks
for a good example of using JPEGs in res files
download resfile.exe from
http://support.microsoft.com/support.../Q194/4/09.ASP
this example doesn't explain how to make the res file itself though
you can use the resource editor addin through VB6 but I just do it manually like this:
resource.rc
compile the .rc file using rc.exe (should be somewhere with vb!)Code:101 Custom yourfile.jpg
102 Custom anotherfile.gif
and then add the .res file to your project
Are there any better resource editors ? The Addin doesnt show the picture, is the source code for the addin avaiable ? also if the res file is compiled with the exe, wouldnt it take alot longer 2 load up ?
Are there any better resource editors ? The Addin doesnt show the picture, is the source code for the addin
avaiable ?
I don't know. I've never used it.
Write your own! :)
also if the res file is compiled with the exe, wouldnt it take alot longer 2 load up ?
No I don't think so. That's the whole point in resouce files, resources aren't loaded into memory until required