
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