Marc,
I will attach a file I used when creating a wine-compatible version of CPRS.
It was originally some instructions that someone gave Nancy. I then
wrote in comments as I went along.
See if this helps.
Kevin
On 2/13/06, Marc Krawitz <[EMAIL PROTECTED]> wrote:
> I think somebody on this list mentioned that detailed instructions on
> building CPRS are available. If somebody has them or could point me
> in the right direction, please reply.
>
> Thanks,
>
> Marc
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> _______________________________________________
> Hardhats-members mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
>
The following steps will install the latest Broker Development Kit as well as
the OR Custom Controls for CPRS.
1. Remove all instances of the OR Custom Controls and Broker component from
Delphi 7. This is accomplished by going to the Component menu and selecting
Install Packages. Once this dialog is open, scroll to the CPRS Custom
Controls, highlight and remove, do this for the CPRS Date/Time Dialogs and
VistA RPC Broker packages as well.
--I then exited Delphi
2. Install the latest Broker Development Kit (XWB1_140PG.EXE)
--When returning to Delphi, the components were not in the components packages.
3. Unzip the OR_30_224.ZIP file to the location you desire.
4. Install the CPRS Custom Controls and CPRS Date/Time Dialogs from the
unzipped source from step 3. The package (.dpk) files are located in the
CPRS-Lib folder that was created as part of the unzipping of the OR source zip.
--I opened ORDateLib60.dpk, then clicked install
I got a "can't make file". So I ensured that read-only properties were not
set.
I then went into options and selected directories/conditionals directories,
and took all the paths data out from Output Directory, Unit dir, search dir,
Debug Src, DCP dir.
-- then clicked install again. I get error:
Cannot load package 'XWB_R60'. It contains unit
'VERGENCECONTEXTORLIB_TLB',
which is also contained in package XWB_R70.
-- I notice that the package file 'requires' XWB_R70.dcp
-- I remember that we added the XWB_R70.dcp earlier. But I can't figure out
where it is connected to Delphi right now. So I look in Component->Install
packages. I see "VistA RPC Broker" which is in design package: c:\Program
Files\Borland\Delphi7\Projects\Bpl\XWB_D70.bpl
-- so I remove XBW_R60.dcp from the 'requires' list in the package.
-- I click install again. I compiles 20-30 files. Then pops up a box:
The following changes are needed... 'Add XWB_R70' I clicked OK.
-- I then get a dialog box that lists about 20-30 components that have been
registered.
--Now when I look at Component->Install packages, I see 'CPRS Custom Controls'.
It is file: c:\Program --Files\Borland\Delphi7\Projects\Bpl\ORCtrlLib60.bpl
(this is 60, because the original package was ORDateLib60.dpk)
--I then click Delphi's File->close all. I save changes to ORDateLib60, and
also save changes to project XWB_R60
I then open file ORCtrlLib60.dpk. I go into the options button, and remove all
path data from directories/conditionals tabs.
I then click install. It compiles the files quickly. But there was no dialog
box saying that components have been installed. The install button is greyed
out. So I compiled again. I get a box saying "ORCtrlLib60.bpl has been
installed."
Now, when I go to Components->Install packages. I see CPRS Date/Time Dialogs,
that is in c:\Program Files\Borland\Delphi7\Projects\Bpl\ORDateLib60.bpl
I go File->Close all. I save changes to ORCtrlLib60.
I open VA10.dpk, remove path entries in the options. Then click Install. I
get a dialog box saying that TVAWrapGrid has been registered.
I go File->Close all. I save changes to project VA10
You should now be able to load and modify the CPRSChart.dpr (Delphi Project)
source.
I did not use the CPRSChart source provided in the Zip files. I have made
changes to the old source that cuts out TWebBrowser, and I don't want to loose
that yet.
When I compile, I get an error in CCOWRPCBroker during a typcast with type
TXWBWinsock. It says this is an unknown type. I don't know why this would be
unknown. CCOWRPCBroker uses unit Wsockc in its implementation uses list. So I
add Wsockc to the CPRSChart project list. Compiling now seems to get a bit
further.
I then get an error regarding unit being redeclared. Its ORCtrls in
fReports.pas. But I think I was the one who added this before in an attempt to
fix a bug. I compare to the newer CPRSChart source tree. Sure enough ORCtrls
should not be in the uses list. So I take it out. Compiling goes MUCH further
then....
Next error is in uOrders.pas. It doesn't know what type TfrmOMHTML is. This
is because of incomplete removal of the web browser functionality. I had
previouslty removed fOMHTML.pas from the project. So I commented out all
instances accessing this object.
I am now getting a mysterious message: 'the webViewBeforeNavigate2 method
referenced by webView.OnBeforeNavigate2 does not exist. Remove the
referenced?' I can't find where this reference is stored. I suspect it is in
a form. But I can't find it. I even used windows find/search function to look
for 'BeforeNavigate' in the entire c:\vista-kt directory--but no finds.
OK... just found it. It was in the form for fOMHTML. This is not in the
project, apparently it was just trying to save the file and finding the error.
I just closed the file, and the message resolves.
Finished compiling. .... Hurrah!
... now to connect to a server.