Results 1 to 4 of 4

Thread: Using resouce files

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    18
    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

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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
    Code:
    101	Custom	yourfile.jpg
    102	Custom	anotherfile.gif
    compile the .rc file using rc.exe (should be somewhere with vb!)
    and then add the .res file to your project



    Mark
    -------------------

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    18
    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 ?

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    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
    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width