CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Resource files

  1. #1
    Join Date
    May 2001
    Location
    india
    Posts
    50

    Resource files

    Hi
    I have developed an activex control which uses some bitmap images. When I make the ocx file of my activex control and use it in another application I have to copy the bitmap files also to the directory where I am copying my ocx file. To avoid this can I use res files?
    I do not know how to use resource files or how to compile them. Please help me???
    My add-in manager does not show the resource file editor? How can I make a resource file???
    Thank you
    Sravanthi


  2. #2
    Join Date
    Sep 2000
    Posts
    77

    Re: Resource files


    Use VC++ to generate a resource file, and include[Add file] the .res file into the project Explorer of your VB project.

    Or you can use ImageList control as well.

    Hope this helps.



  3. #3
    Join Date
    Sep 2000
    Posts
    77

    Re: Resource files

    Are you loading the bitmaps at run time? if so, I guess that may not the correct way. You can as well include the bmps into your project and compile it so that you don't have to distribute them.




  4. #4
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Resource files

    What version of VB do you have? My version VB 6.0 (Professional ) DOES NOT HAVE A WAY TO EXCLUDE the Resource Editor when installing. You get it whether you want it or not.
    Mine is located at menus "Addins\Addin Manager
    VB6 Resource Editor".

    Please rate it if it answers the question
    or is useful.
    '
    John G

  5. #5
    Join Date
    May 2001
    Location
    india
    Posts
    50

    Re: Resource files

    Hi
    Yes I am using VB version 6.0 but my VB add-in Manager does not have a resource file editor.

    Now I have included the bmp files as related documents in the project , but how can I use them in my project?
    I am loading the images at run time. How can I refer to the related documents in my poject??? Please Help!!
    Sravanthi


  6. #6
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Resource files

    VB 6.0 has several editions including Working, Standard, Professional and Enterprise. You must have Working or standard. The other two I know has a Resource Editor. But that does not solve your problem.
    You might try storing your graphic files in a ImageList control and read them from there.

    Please rate it if it answers the question
    or is useful.
    '
    John G

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

Featured