Results 1 to 17 of 17

Thread: Help me!!!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Unhappy

    Help!
    I want to know in what program I can restore images,
    sounds and things like that in a RES file?
    Anyone has the program? And if he could give it to me
    or maybe a website where I can download it?

    Thank you,
    Arie.

    Visit: http://www.nip.to/camel2000
    NEW!!! Euro 2000 in this website.

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Wink

    I make them in VC++...

  3. #3
    Guest
    What do you mean? Getting images from Apps?


  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Arrow

    I want a simple program that makes RES files easly!
    That's all. Try to get me one. Please...

    Thank you,
    Arie.

    Visit: http://www.nip.to/camel2000
    NEW!!! Euro 2000 - Everyday update!

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I need one, too, I hate to have others to make my res files
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6
    Guest
    Use your Resource Compiler. It makes RES files easily.


  7. #7
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    yeah but i need a res editor too
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  8. #8
    Guest
    RES Editor???

  9. #9
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    to make a .res file, you write (in notepad) a .rc file, which you then pass to your resource compiler which spits out a .res file. look at the m$ documentation at http://msdn.microsoft.com/library for more info. VC++ has a resource script (.rc) editor which is quite good.

  10. #10
    Guest
    You guys find it hard to write your own? I find it pretty easy.


  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Arrow

    Hey, Megatron!
    And if I have the VB 4.0? there is any compiler there?
    There is any "SOLO" program that I can download
    and do RES files?
    Or maybe it comes just with VB 5.0 or higher?

    Thank you,
    Arie.

    Visit: http://www.nip.to/camel2000
    NEW!!! Euro 2000 - Last update: 16.6.00

  12. #12
    Guest
    Yes, I believe it does come with version 4.0. Look for the file called RC.EXE.

  13. #13

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Arrow

    And if I have this file. what I need to do
    to start a RES file?
    Someone said with a notepad? and then? what should I
    write in it?

    Thank you,
    Arie.

    Visit: http://www.nip.to/camel2000
    NEW!!! Euro 2000 - Today's update

  14. #14
    Guest
    You must write the Resource Script (*.RC) in Notepad and use the Resource Compiler to convert it into a Resource file.

    For information on writing the script, read the file called Resource.txt

  15. #15
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I don't have that file resource.txt, can anyone send it?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  16. #16
    Guest
    I think it might be a part of Visual Studio and not VB. Andyway, here it is for everyone.

    *****************************************************************************
    INTRODUCTION
    *****************************************************************************

    This text file explains how to use the Resource Compiler (RC.EXE) to create
    resource files (.RES) that can be added to your Microsoft (R)
    Visual Basic (R) project.

    For information on how to add the .RES file to your Visual Basic project and
    replace string literals and binary data in code, please search Visual Basic
    Help and Books On-Line.

    *****************************************************************************
    CONTENTS OF RESOURCE.TXT
    *****************************************************************************

    1. OVERVIEW
    2. STRING RESOURCES
    3. BINARY RESOURCES
    4. RESOURCE COMPILER OPTIONS

    *****************************************************************************
    1. OVERVIEW
    *****************************************************************************

    The RC.EXE file located in the \TOOLS\RESOURCE directory can be
    used for 32-bit resources used in applications under Windows 95 or later and
    Windows NT 3.51 or later.

    The resource sample project (ATM.VBP) in the \SAMPLES\RESOURCE directory of
    your Visual Basic installation demonstrates most of the functionality
    described in this file. The ATM.RC file is the resource definition file used
    to create the .RES file for the ATM project. You won't be able to recompile
    the ATM.RC without removing the references to bitmaps, sound files and
    cursors not shipped in Visual Basic version 4.0

    The Resource Compiler compiles the resource definition file and the resource
    files (binary files such as icon, bitmap, and cursor files) into a binary
    resource (.RES) file.

    Resources can be divided into two groups:

    - String resources (text strings such as "Hello World").
    - Binary resources (icons, bitmaps, cursors, sounds, video, and so forth).

    *****************************************************************************
    2. STRING RESOURCES
    *****************************************************************************

    String resources are stored in a string table in the resource definition
    file.

    SYNTAX:

    STRINGTABLE [load-option] [mem-option]
    BEGIN
    stringID string
    .
    .
    .
    END

    The STRINGTABLE statement defines one or more string resources for an
    application. String resources are simply null-terminated ASCII strings that
    can be loaded when needed from the executable file, using the LoadResString
    function.

    PARAMETERS

    - load-option. Specifies when the resource is to be loaded. This optional
    parameter must be one of the following options:

    Option Description
    ------ -----------
    PRELOAD Resource is loaded immediately.
    LOADONCALL (Default) Resource is loaded when called.

    - mem-option. Specifies whether the resource is fixed or can be moved
    and whether or not can be discarded. This optional parameter can
    be one of the following options:

    Option Description
    ------ -----------
    FIXED Resource remains at a fixed memory location.
    MOVEABLE Resource can be moved if necessary in order to compact
    memory.
    DISCARDABLE Resource can be discarded if no longer needed.


    - stringID. Specifies an integer value that identifies the resource.

    - string. Specifies one or more ASCII strings, enclosed in double quotation
    marks. The string must be no longer than 255 characters and must occupy a
    single line in the source file.

    Grouping strings in separate segments allows all related strings to be read
    once in a single reading and discarded together. When possible, you should
    be able to move and discard the table. The Resource Compiler allocates
    16 strings per segment and uses the identifier value to determine which
    segment will contain the string. Strings with the same upper-12 bits in
    their identifiers are placed in the same segment.

    EXAMPLE

    The following example demonstrates the STRINGTABLE statement:

    #define IDS_HELLO 1
    #define IDS_GOODBYE 2

    STRINGTABLE
    BEGIN
    IDS_HELLO, "Hello"
    IDS_GOODBYE, "Goodbye"
    END

    *****************************************************************************
    3. BINARY RESOURCES
    *****************************************************************************

    Binary resources are not stored in the resource definition file. The
    resource definition file includes only a pointer to the files containing
    the binary resources, for example, icon (.ICO), bitmap (.BMP), cursor (.CUR),
    sound (.WAV), and video (.AVI) files.

    This pointer is called a Single-Line Statement in the resource definition
    file.

    SYNTAX

    nameID keyword [load-option] [mem-option] filename

    PARAMETERES

    - nameID. Specifies either a name or an integer value identifying the
    resource. This ID has to be unique for every category specified by the
    keyword. In the category ICON the ID 0 is reserved for the Visual Basic
    icon. Therefore you'll have to start ID for ICONS at 1.

    - keyword. Specifies the type of file. The parameter must be one of the
    following options:

    Option Description
    ------ -----------
    BITMAP Defines a bitmap (.BMP)
    CURSOR Defines a cursor (.CUR)
    ICON Defines an icon (.ICO)
    SOUND Defines a wave file (.WAV)
    VIDEO Defines a video file (.AVI)


    - load-option. Specifies when the resource is to be loaded. The parameter
    must be one of the following options:

    Option Description
    ------ -----------
    PRELOAD Resource is loaded immediately.
    LOADONCALL (Default) Resource is loaded when called.

    - mem-option. Specifies whether the resource is fixed or can be moved and
    whether it can be discarded. The parameter must be one of the following
    options:

    Option Description
    ------ -----------
    FIXED Resource remains at a fixed memory location.
    MOVEABLE Resource can be moved if necessary in order to compact
    memory.
    DISCARDABLE Resource can be discarded if no longer needed.

    The default for binary resources is MOVEABLE.

    - filename. Specifies the name of the file that contains the resource.
    The name must be a valid MS-DOS (R) filename; it must be a full path
    if the file is not in the current working directory. The path can
    be either a quoted or non-quoted string.

    EXAMPLE

    The following example specifies two bitmap resources:

    disk1 BITMAP disk.bmp
    12 BITMAP PRELOAD diskette.bmp

    To load binary resources in your Visual Basic code use the LoadResBitmap
    function for icons, bitmaps and cursor. Use the LoadResData function to
    load wave files and AVI files.

    For the creation of binary resource files, Microsoft provides the
    following tools to make it easier to store sounds and graphics in a
    format that is usable in the Resource Compiler:

    - Imagedit is an image editor that supports icons (.ICO), bitmaps (.BMP)
    and cursors (.CUR). You can find this tool in the \TOOLS\IMAGEDIT
    directory on your Visual Basic CD-ROM.

    - Microsoft Sound System is a multimedia application that supports
    wave files (.WAV).

    - Microsoft Video is a multimedia application that supports video
    files (.AVI).

    *****************************************************************************
    4. RESOURCE COMPILER OPTIONS
    *****************************************************************************

    To start the Resource Compiler, use the rc command. What you need to
    specify in the command line depends on whether you are compiling resources,
    adding compiled resources to an executable file, or doing both.

    However, to use the resources in your Visual Basic application, you
    will only need to compile the resources into a .RES file and add it to
    your Visual Basic project.

    SYNTAX

    rc /r [options] definition-file


    PARAMETERS

    - /r This parameter specifies that the .RC file will only be
    compiled, not linked to any executable.

    - options. You can use the following options with the rc command:

    Option Description
    ------ -----------
    /? Displays a list of rc command-line options.
    /fo newname Uses newname for the name of the .RES file.

    - definition-file. The definition-file parameter specifies the name of
    the resource definition file (.RC) that contains the names, types,
    filenames, and descriptions of the resources to be compiled.


    EXAMPLE

    RC /r /fo TEST32.RES TEST.RC


    NOTE

    You'll have to close your Visual Basic project or remove the .RES file from your
    project when you recreate the resource file.

  17. #17
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Thanks Meg
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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