Does any one ever try *.res (Resource File) 
Author Message
 Does any one ever try *.res (Resource File)

    Did anyone can help me about
    1. How to create windows resource file ?!!
    2. How to access or use it through VB ?
    3. What type of file or text that resource file can store ?
    4. Did anyone have that utility (to create resource file)

    Thankyou very much...

Mitamura
Avirot



Sat, 10 Feb 2001 03:00:00 GMT  
 Does any one ever try *.res (Resource File)
Res files are better supported in VB6.


Sat, 10 Feb 2001 03:00:00 GMT  
 Does any one ever try *.res (Resource File)
1 and 4 - Check Microsoft's developer site for registered users.  On the
site you will find Resource editor     as an add-in for VB5.  I haven't used
it much, but it looks good.
2 - Also, if you look on the support site, you will find examples of how to
read from a .res file.
3 - ??

Hope this helps.
Alex.

Quote:

>    Did anyone can help me about
>    1. How to create windows resource file ?!!
>    2. How to access or use it through VB ?
>    3. What type of file or text that resource file can store ?
>    4. Did anyone have that utility (to create resource file)

>    Thankyou very much...

>Mitamura
>Avirot




Sat, 10 Feb 2001 03:00:00 GMT  
 Does any one ever try *.res (Resource File)
This will get you started with resources.

Create a text file MYRES.RC --------------

#define IDBMP_BLAHBMP   100
#define IDS_HELLO               200
#define IDS_GOODBYE             201

// Bitmaps (Don't forget the "\\")
ID_BLAHBMP      BITMAP  "c:\\blah\\blah.bmp"

// Strings
STRINGTABLE
BEGIN
        ID_HELLO, "Hello"
        ID_GOODBYE, "Goodbye"
END

From the command line -----

C:\> RC32 MYRES.RC

With VB ------------------

Add MYRES.RES (output of the above) to your project

MODULE1.BAS ------------

Public Const ID_BITMAP  As Integer = 100
Public Const ID_HELLO   As Integer = 200
Public Const ID_GOODBYE As Integer = 201

FORM1.FRM --------------

' Add 2 labels and a picturebox

Picture1.Picture = LoadResPicture(ID_BLAHBMP, vbResBitmap)
Label1.Caption = LoadResString(ID_HELLO)
Label2.Caption = LoadResString(ID_GOODBYE)



Quote:
>    Did anyone can help me about
>    1. How to create windows resource file ?!!
>    2. How to access or use it through VB ?
>    3. What type of file or text that resource file can store ?
>    4. Did anyone have that utility (to create resource file)

>    Thankyou very much...

>Mitamura
>Avirot




Sat, 10 Feb 2001 03:00:00 GMT  
 Does any one ever try *.res (Resource File)
Go to Microsofts web site for registered users, they indeed offer a plug-in
ressource aditor to VB5. I use it in my projects, it has some limitations
but in general it works. This gives you the chance to create *.res files.
Alternatively, you can use an editor such as VC++ if you have it. There are
several functions going along with res-Files in VB such as "LoadResString",
"LoadResPic" etc. (check the online help). A resource file can store
bitmaps, icons, string tables, binary data etc... However, it requires good
planning as resoruces are referenced by IDs and you should really keep track
of them...

Andreas



Sun, 11 Feb 2001 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. RTF Files (.rtf) inside a Resource file (.res)?

2. Resource Files .RES

3. Resource files rc/res problem :(

4. Playing .wav data in a resource (.res) file?

5. SourceSafe 6.0 & Resource File (.res)

6. Corrupted Resource (*.RES) files from executable?

7. RES External Resource files ?

8. file of resources ( Setup1.res )

9. automation of custom resources in .res file

10. I need a tool for edititing resource files (.res or .rc)

11. Resource files in VB 5.0 - how to create .RES

12. Resource Files {*.RES}

 

 
Powered by phpBB® Forum Software