How To build RW-Metro examples on WINNT4-MSVC6.0 ?

Article ID: 785
Last updated: 01 Feb, 2008
Article ID: 785
Last updated: 01 Feb, 2008
Revision: 1
Views: 3812
Posted: 01 Mar, 1999
by Dean J.
Updated: 01 Feb, 2008
by Dean J.
Problem


How To build RW-Metro examples on WINNT4-MSVC6.0 ?


Cause





Action


RW-Metro -on WINNT40-MSVC60
--------------------------------------------------

1) Make sure you have DBTools libraries Installed and built and DBTools examples work fine.
RW-Metro depends on DBTools.

There are two products with RW-Metro
a). orfactory GUI Interface (orf010xw)
b). op interface(opi010xw)

Before building Metro using partmgr check whether you have above mentioned products in your spm/parts directory.

You will be building opi010xw source code only, from the partmgr, as orf010xw is GUI product.

2).How can I run the RW-Metro examples?
----------------------------------------------------------

There are three examples available with RW-Metro(claim,video,schedule)

3). Go to spm/parts/orf010xs(you can go to orfactory from start-programs-RWMetro from Winnt)
Run orfactory executable.
you will see popped up window options setup

Check the path for the Object Library and Backup Files. By default the path will be set according
to the location of the spm. Say OK if your spm path is correct.

Now go to file on the menu.
open one of the examples. Let's say video example from
spm/parts/orf0100s/examples/video/video_msvc.orp

4). Now go to the file stdpc.rsp located under
spm/parts/orf0100s/examples and modify it as follows
(you can use notepad or msvc to open stdpc.rsp)

/I D:Program FilesMicrosoft Visual StudioVC98Include
/I D:spm81workspacesWinnt4msvc607d
/I D:spm81workspacesWinnt4msvc607dinclude
/I .

5). Come back to ORFactory,
You will see couple of windows on your screen.
On the Object manager window, select the appropriate database, say oracle.

Select Project - parse from the ORFactory menu.

Any errors, check the path for spm as well as Microsoft in stdpc.rsp file.

6) Open the VVRentalTransaction class's Members folder in the Project
Manager window, then specify the object identity attributes in the
Object Manager window, by setting PartOfKey to True for customerID_
and videoID_ only, in that order.
(Once you click on customerID_ under VVRentalTransaction/members, you will see immediate chages
in the Object manager window showing different attributes.
Go to PartOfKey and set it to True. Similarly do it for videoID_)

7) Open the VVCustomer class's Members folder in the Project Manager
window, open parent_Wcontact's Members folder, select id_, then
set PartOfKey to True in the Object Manager window.

8) Select Project | Generate from the ORFactory menu to generate
the OR mapping code for the video project.

9) Now go open a MS Dos Command prompt
cd spmscripts
./rwspm -wc:/your/workspace/0s -t0 -p/this/dir -fw32_msvc.in

on my machine I had 7d libraries and the command I used is
./rwspm -wd:spm81workspacewinnt4msvc607d -t7 -d -pd:spm81partsorf0100wexamplesvideo -fw32_msvc.in

This script starts building the video example.

10) Now go to spm/workspaces/winnt4/msvc60/7d/utilities/video_msvc/
run) video_msvcTables create

for oracle it is
video_msvcTables ora7d.dll sound mohan mohan1 create

You will see the script creating tables as follows
SUCCESS: Connected to ora7d.dll:sound/ as User: mohan


Beginning of table manipulation for VVCustomer

Manipulating table VVCustomer
Attempting to create VVCustomer with primary keys
VVCustomer table created with primary keys
....
....
....
...

That's it. Metro product is installed properly.

You can find more information on claim example in the RW Metro user's guide and class reference.
You can find the build process for video and schedule examples in the readme files located under
spm/parts/orf0100w/examples/readme.txt
spm/parts/orf0100w/examples/video/readme.txt
spm/parts/orf0100w/examples/schedule/readme.txt

This article was:   Helpful | Not helpful
Report an issue
Article ID: 785
Last updated: 01 Feb, 2008
Revision: 1
Views: 3812
Posted: 01 Mar, 1999 by Dean J.
Updated: 01 Feb, 2008 by Dean J.

Others in this category