-
February 21st, 2002, 06:38 AM
#1
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
-
February 21st, 2002, 07:15 AM
#2
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.
-
February 21st, 2002, 07:19 AM
#3
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.
-
February 21st, 2002, 10:45 AM
#4
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
-
February 23rd, 2002, 05:38 AM
#5
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
-
February 23rd, 2002, 09:53 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|