home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
VISBUILD
/
VBREMOTE
/
README
< prev
next >
Wrap
Text File
|
1995-06-08
|
7KB
|
206 lines
NAME: 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 pause and mute. 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.
TASK:
A simple GUI application that lets a user play a
CD, audio wave file, video (AVI) file or MIDI file.
This is an example of using inheritance to
control the switching from device to device. No
switch logic was needed.
CONCEPT/FEATURE:
Illustrates toolbar, animated push buttons and
multi media players.
PROJECT LOCATION:
Inside the VisBuild Sample folder (inside the
VisualAge C++ Samples folder).
SOURCE FILE LOCATION:
X:\ibmcpp\samples\visbuild\vbremote
where X: is the drive you installed the samples
and document component of VisualAge C++.
Select Source Files for a list of the source files
in this directory.
HOW TO RUN THE SAMPLE:
Note: Before executing this application or
editing its parts with the Visual Builder. you
must add
\ibmcpp\samples\visbuild\vbremote\cppov43
to the LIBPATH in your CONFIG.SYS. This is so
the sample can find the resource DLL,
CPPOV43R.DLL, which contain the various
bitmaps and icons used by this application.
From within the WorkFrame environment:
To run the prebuilt project, open the
Samples folder on your OS/2 desktop
then double-click on the project's icon
to open the project view of the
sample. Click on the RUN button of
the project's toolbar.
From the command line:
Simply type the name of the .EXE file,
that is:
VBREMOTE
HOW TO BUILD THE SAMPLE PROJECT YOURSELF:
From within the WorkFrame environment:
Open the Samples folder on your OS/2
desktop then double-click on the
project's icon to open the project view
of the sample. In the upper half of the
project window you will see the icons
of the files associated with the sample.
Start the Visual Builder component of
VisualAge C++ by selecting Visual from
the Project pulldown. Then, from the
main Visual Builder Window:
1. Select the "VBRemote" part in the
"Visual Parts" list and then select
"Part->Generate->Part source"
from the Menubar.
2. Select only the "VBRemote" part
in the "Visual Parts" list and then
select "Part->Generate->main() for
part" from the Menubar.
3. Now invoke a Project Build Action.
To run the sample project, see How to
run the sample project above.
From the command line:
Start the Visual Builder component of
VisualAge C++ by typing:
icsvb
From the main Visual Builder Window:
1. Select all the parts in the "Visual
Parts" list and then select
"Part->Generate->Part source"
from the Menubar.
2. Select only the "VBRemote" part
in the "Visual Parts" list and then
select "Part->Generate->main() for
part" from the Menubar.
3. From an OS/2 command line, make
this sample's directory the current
directory and invoke the BUILD.CMD
program by typing:
BUILD
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, type:
icsvb
or from the project view of the
sample:select Visual from the Project
pulldown.
2. When the Visual Builder Window appears,
select from the Menubar the "File->Load"
option.
3. The Load Files dialog will appear with a list
of "class files" that may be loaded. Select
from the list the files listed in step number
one (1) above and press the "OK" button.
4. Again using the Load Files dialog, load the
file VBMM.VBB from the \ibmcpp\dde4vb
directory. This contains the standard
multi-media support parts.
5. Now that you have loaded the necessary
files, from the "Loaded Part Files" list in the
Visual Builder Window select the .VBB's.
This will cause the application's visual parts
to be displayed in the "Visual Parts" list of
this Window.
6. You may now select any or all of these
parts from the "Visual Parts" list and then
select "Part->Open" from the Menubar to
open these parts for viewing and/or
editting.
SOFTWARE/HARDWARE PREREQUISITES:
IBM VisualAge C++
OS/2 2.1 or Warp
DB2/2 1.2
MMPM/2 is required to use this sample.
IBM or compatible 486 and up.
ADDITIONAL INFORMATION:
For more information on the creation and
use of projects in the WorkFrame
environment, see the VisualAge C++ for
OS/2 User's Guide.
For more information on the the Visual
Builder, see the VisualAge C++ for OS/2
Visual Builder User's Guide.
Both books can be found online. To access an
online book, simply open the main VisualAge
C++ desktop folder, then open the Information
Folder inside. To view a book, double-click on
that book's icon.
REQUIRED FILES:
BUILD CMD
CPPOV43_
README
VBREMOTE AVI
VBREMOTE DEF
VBREMOTE EXE
VBREMOTE MAK
VBREMOTE MID
VBREMOTE VBB
VBREMOTE WAV
\ibmcpp\samples\visbuild\vbremote\cppov43 directory:
CD BMP
CPPOV43 DEF
CPPOV43 MAK
CPPOV43 RC
CPPOV43R DLL
DIGVIDEO BMP
EMPTY CPP
MIDI BMP
WAVE BMP