home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / visbuild / vbremote / readme.txt < prev    next >
Encoding:
Text File  |  1996-02-16  |  6.5 KB  |  151 lines

  1. **********************************************************************
  2. * DISCLAIMER OF WARRANTIES:                                          *
  3. *                                                                    *
  4. * The following enclosed code is sample code created by IBM          *
  5. * Corporation.  This sample code is not part of any standard IBM     *
  6. * product and is provided to you solely for the purpose of assisting *
  7. * you in the development of your applications.  The code is provided *
  8. * "AS IS", without warranty of any kind.  IBM shall not be liable    *
  9. * for any damages arising out of your use of the sample code, even   *
  10. * if they have been advised of the possibility of such damages.      *
  11. *                                                                    *
  12. **********************************************************************
  13.  
  14. VBREMOTE
  15.  
  16.   DESCRIPTION:
  17.        This application simulates a hand held remote
  18.        control. The tool bar buttons let the user select
  19.        which device they want to play. The animated
  20.        push buttons allow the user to play, stop,
  21.        rewind, fast forward and pause.  When the
  22.        user presses a tool bar button for the wave,
  23.        video or MIDI players, a file dialog appears to
  24.        allow them to select a wave, video or midi file.
  25.        After the user presses the OK button on the file
  26.        dialog, the file is loaded. The user may press the
  27.        Play button at this time. The CD select button
  28.        does no more than setting the remote control to
  29.        CD mode.
  30.  
  31.   CONCEPT/FEATURE:
  32.        Illustrates toolbar, animated push buttons and
  33.        multi media players.
  34.  
  35.   SPECIAL NOTES:
  36.        A CD must be in the player prior to starting this
  37.        application.
  38.  
  39.  
  40.   HOW TO RUN THE SAMPLE:
  41.  
  42.        From within the WorkFrame environment:
  43.                  1. Open the VisualAge for C++ product object.
  44.                  2. Open the Guide to Samples notebook.
  45.                  3. Select "Visual Builder Samples" from the
  46.                     Component drop down list.
  47.                  4. Select "VBRemote" from the List of Samples.
  48.                  5. Click the "Open Project" button to open the
  49.                     project view.
  50.                  6. Click on the RUN button of the project's toolbar.
  51.  
  52.        From the command line:
  53.                  1. Set the current drive as the drive where you
  54.                     installed the VisualAge C++ samples.
  55.                  2. Set the directory path for the this sample
  56.                     as follows:
  57.                        cd ibmcppw\samples\visbuild\vbremote
  58.                  3. Set the path environment variable as follows:
  59.                        set path=.\cppwv43;%path%
  60.                  4. Type the name of the .EXE file, VBREMOTE.
  61.  
  62.  
  63.   HOW TO BUILD THE SAMPLE PROJECT YOURSELF:
  64.  
  65.        From within the WorkFrame environment:
  66.                  Open the sample project view as described
  67.                  above. In the project window you will see
  68.                  the icons of the files associated with the sample.
  69.  
  70.                  1. From the project view of this sample, select
  71.                     "Visual" from the Project pulldown.
  72.                  2. Select the "VBRemote" part in the
  73.                     "Visual Parts" list and then select
  74.                     "Part->Generate->Part source"
  75.                     from the Menubar.
  76.  
  77.                  3. Select only the "VBRemote" part
  78.                     in the "Visual Parts" list and then
  79.                     select "Part->Generate->main() for
  80.                     part" from the Menubar.
  81.                  4. Now invoke a Project Build Action.
  82.  
  83.                  To run the sample project, see How to
  84.                  run the sample project above.
  85.  
  86.        From the command line:
  87.                  1. Set the current drive as the drive where you
  88.                     installed the VisualAge C++ samples.
  89.                  2. Set the directory path for this sample
  90.                     as follows:
  91.                        cd ibmcppw\samples\visbuild\vbremote
  92.                     This will allow Visual Builder to automatically
  93.                     load all the Visual Builder "class files"
  94.                     this samples uses.  These files are listed
  95.                     in the file VBLOAD.DAT in this directory.
  96.                  3. Start the Visual Builder Tool by typing the
  97.                     following from the command line:
  98.                        ivb
  99.                  4. Select all the VBREMOTE part in the "Visual
  100.                     Parts" list and then select
  101.                     "Part->Generate->Part source"
  102.                     from the Menubar.
  103.  
  104.                  5. Select only the "VBRemote" part
  105.                     in the "Visual Parts" list and then
  106.                     select "Part->Generate->main() for
  107.                     part" from the Menubar.
  108.                  6. Build the EXE by executing the MAKE as follows:
  109.                        nmake vbremote.mak
  110.                  7. You may optionally build the DLL, CPPWV43R.DLL, which
  111.                     contains the resources used by this application
  112.                     as follows:
  113.                        cd cppwv43
  114.                        nmake makefile.mak
  115.  
  116.  
  117.   HOW TO INSPECT THE VISUAL PARTS USING THE VISUAL BUILDER
  118.  
  119.        There is one "class file" that makes up the
  120.        application, VBREMOTE.VBB.
  121.  
  122.               1. Start the Visual Builder Tool --
  123.                  from the command line:
  124.                  - Set the current drive as the drive where you
  125.                    installed the VisualAge C++ samples.
  126.                  - Set the directory path for this sample
  127.                    as follows:
  128.                       cd ibmcppw\samples\visbuild\vbremote
  129.                  - Type:
  130.                       ivb
  131.  
  132.                  or from the project view of the
  133.                  sample, select Visual from the Project
  134.                  pulldown.
  135.               2. When the Visual Builder Window appears,
  136.                  you may now select any or all of the
  137.                  parts from the "Visual Parts" list and then
  138.                  select "Part->Open" from the Menubar to
  139.                  open these parts for viewing and/or
  140.                  editting.
  141.  
  142.  
  143.   ADDITIONAL INFORMATION:
  144.        For additional information on this and other samples shipped
  145.        with the VisualAge for C++ product, please see the Guide to Samples
  146.        notebook.
  147.  
  148.        To access the notebook from Program Manager, open the
  149.        VisualAge for C++ product object, then open the Guide to Samples
  150.        notebook.
  151.