**********************************************************************
* DISCLAIMER OF WARRANTIES:                                          *
*                                                                    *
* The following enclosed code is sample code created by IBM          *
* Corporation.  This sample code is not part of any standard IBM     *
* product and is provided to you solely for the purpose of assisting *
* you in the development of your applications.  The code is provided *
* "AS IS", without warranty of any kind.  IBM shall not be liable    *
* for any damages arising out of your use of the sample code, even   *
* if they have been advised of the possibility of such damages.      *
*                                                                    *
**********************************************************************

VBREMOTE

  DESCRIPTION:
       This application simulates a hand held remote
       control. The tool bar buttons let the user select
       which device they want to play. The animated
       push buttons allow the user to play, stop,
       rewind, fast forward and pause.  When the
       user presses a tool bar button for the wave,
       video or MIDI players, a file dialog appears to
       allow them to select a wave, video or midi file.
       After the user presses the OK button on the file
       dialog, the file is loaded. The user may press the
       Play button at this time. The CD select button
       does no more than setting the remote control to
       CD mode.

  CONCEPT/FEATURE:
       Illustrates toolbar, animated push buttons and
       multi media players.

  SPECIAL NOTES:
       A CD must be in the player prior to starting this
       application.


  HOW TO RUN THE SAMPLE:

       From within the WorkFrame environment:
                 1. Open the VisualAge for C++ product object.
                 2. Open the Guide to Samples notebook.
                 3. Select "Visual Builder Samples" from the
                    Component drop down list.
                 4. Select "VBRemote" from the List of Samples.
                 5. Click the "Open Project" button to open the
                    project view.
                 6. Click on the RUN button of the project's toolbar.

       From the command line:
                 1. Set the current drive as the drive where you
                    installed the VisualAge C++ samples.
                 2. Set the directory path for the this sample
                    as follows:
                       cd ibmcppw\samples\visbuild\vbremote
                 3. Set the path environment variable as follows:
                       set path=.\cppwv43;%path%
                 4. Type the name of the .EXE file, VBREMOTE.


  HOW TO BUILD THE SAMPLE PROJECT YOURSELF:

       From within the WorkFrame environment:
                 Open the sample project view as described
                 above. In the project window you will see
                 the icons of the files associated with the sample.

                 1. From the project view of this sample, select
                    "Visual" from the Project pulldown.
                 2. Select the "VBRemote" part in the
                    "Visual Parts" list and then select
                    "Part->Generate->Part source"
                    from the Menubar.

                 3. Select only the "VBRemote" part
                    in the "Visual Parts" list and then
                    select "Part->Generate->main() for
                    part" from the Menubar.
                 4. Now invoke a Project Build Action.

                 To run the sample project, see How to
                 run the sample project above.

       From the command line:
                 1. Set the current drive as the drive where you
                    installed the VisualAge C++ samples.
                 2. Set the directory path for this sample
                    as follows:
                       cd ibmcppw\samples\visbuild\vbremote
                    This will allow Visual Builder to automatically
                    load all the Visual Builder "class files"
                    this samples uses.  These files are listed
                    in the file VBLOAD.DAT in this directory.
                 3. Start the Visual Builder Tool by typing the
                    following from the command line:
                       ivb
                 4. Select all the VBREMOTE part in the "Visual
                    Parts" list and then select
                    "Part->Generate->Part source"
                    from the Menubar.

                 5. Select only the "VBRemote" part
                    in the "Visual Parts" list and then
                    select "Part->Generate->main() for
                    part" from the Menubar.
                 6. Build the EXE by executing the MAKE as follows:
                       nmake vbremote.mak
                 7. You may optionally build the DLL, CPPWV43R.DLL, which
                    contains the resources used by this application
                    as follows:
                       cd cppwv43
                       nmake makefile.mak


  HOW TO INSPECT THE VISUAL PARTS USING THE VISUAL BUILDER

       There is one "class file" that makes up the
       application, VBREMOTE.VBB.

              1. Start the Visual Builder Tool --
                 from the command line:
                 - Set the current drive as the drive where you
                   installed the VisualAge C++ samples.
                 - Set the directory path for this sample
                   as follows:
                      cd ibmcppw\samples\visbuild\vbremote
                 - Type:
                      ivb

                 or from the project view of the
                 sample, select Visual from the Project
                 pulldown.
              2. When the Visual Builder Window appears,
                 you may now select any or all of the
                 parts from the "Visual Parts" list and then
                 select "Part->Open" from the Menubar to
                 open these parts for viewing and/or
                 editting.


  ADDITIONAL INFORMATION:
       For additional information on this and other samples shipped
       with the VisualAge for C++ product, please see the Guide to Samples
       notebook.

       To access the notebook from Program Manager, open the
       VisualAge for C++ product object, then open the Guide to Samples
       notebook.
