Home > Archive > Clarion > May 2004 > Old DOS program
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Mark Rogers 2004-05-17, 3:30 pm |
| I'm not sure if this is the right place to ask this, if not maybe
someone knows where I can find the answer.
I have been asked to modify an existing program which runs in DOS (an
old old program). What I want to do is nothing fancy just change some
titles for screens. I've never used Clarion before and until a few
days ago have never even heard of it. I managed to work out how to use
the program basically and have managed to change quite a few of the
screens.
However my problem is that some of the screens I can't change because
they won't compile. The ones that won't compile don't have a .sym file
whereas the ones that I've managed to changed do. What is this file ?
Is there a way to create one of these files so I can get the .cla
files compiled with the changes I have made ?
Any help on this matter will be greatly appreciated.
| |
| Neal Phillips 2004-05-17, 5:30 pm |
| Mark
It went something like this for CPD2.1
You worked in the developer or editor.
This produced .cla files
You ran the COMPILER
This produced .PRO (program) and .SYM (symbol) files
Then you ran the TRANSLATOR
This produced the .EXE
On the translator window you named the program. All the .pro & .sym had to
be in the same directory as the program.
HTH
Neal
"Mark Rogers" <darkmast2@netscape.net> wrote in message
news:cfa495f1.0405171044.7ea57f3d@posting.google.com...
> I'm not sure if this is the right place to ask this, if not maybe
> someone knows where I can find the answer.
>
> I have been asked to modify an existing program which runs in DOS (an
> old old program). What I want to do is nothing fancy just change some
> titles for screens. I've never used Clarion before and until a few
> days ago have never even heard of it. I managed to work out how to use
> the program basically and have managed to change quite a few of the
> screens.
>
> However my problem is that some of the screens I can't change because
> they won't compile. The ones that won't compile don't have a .sym file
> whereas the ones that I've managed to changed do. What is this file ?
> Is there a way to create one of these files so I can get the .cla
> files compiled with the changes I have made ?
>
> Any help on this matter will be greatly appreciated.
| |
| Jason Berkan 2004-05-17, 7:30 pm |
| On 17 May 2004 11:44:41 -0700, darkmast2@netscape.net (Mark Rogers)
wrote:
>However my problem is that some of the screens I can't change because
>they won't compile. The ones that won't compile don't have a .sym file
>whereas the ones that I've managed to changed do. What is this file ?
A symbol file containing the symbols and addresses in the module. It
is created by the compiler. The compiler (CCVT) creates a PRO and SYM
for each CLA file. The processor (CPRO) can run these programs (the
PRO files). The linker (CTRN) creates OBJ/BOJ files and an EXE out of
all the PRO/SYM files.
>Is there a way to create one of these files so I can get the .cla
>files compiled with the changes I have made ?
CCVT MYFILE.CLA
You may want to be more specific regarding the errors (if any) you
encounter compiling these CLAs, as it is possible they are not
included in the program map, which is why they are not compiled.
(That means they aren't used in the program, so there is no point in
compiling them.)
Jason
| |
| Mark Rogers 2004-05-18, 7:30 am |
| Would first like to say thanks for the replys so far.
Now onto the error message.
File: "Airrep01.cla"
When I try to compile it I get the following :-
Compiler Errors
26 Messages found in airrep01.cla
E 190 @1/29: '2' DOS ERROR; Cannot access .sym file
W 129 @2/1: 'MENU' Is not a procedure in the map
E 134 @47/11: 'REJECT_KEY' Is undefined
E 134 @48/11: 'ACCEPT_KEY' Is undefined
E 134 @49/11: 'F7_KEY' Is undefined
E 134 @50/11: 'F2_KEY' Is undefined
E 134 @51/11: 'F3_KEY' Is undefined
Jason Berkan <jason_berkan@canada.com> wrote in message news:<406ia056ch78kt20bs3o1a79mibbi1j427@4ax.com>...
> On 17 May 2004 11:44:41 -0700, darkmast2@netscape.net (Mark Rogers)
> wrote:
>
> A symbol file containing the symbols and addresses in the module. It
> is created by the compiler. The compiler (CCVT) creates a PRO and SYM
> for each CLA file. The processor (CPRO) can run these programs (the
> PRO files). The linker (CTRN) creates OBJ/BOJ files and an EXE out of
> all the PRO/SYM files.
>
>
> CCVT MYFILE.CLA
>
> You may want to be more specific regarding the errors (if any) you
> encounter compiling these CLAs, as it is possible they are not
> included in the program map, which is why they are not compiled.
> (That means they aren't used in the program, so there is no point in
> compiling them.)
>
> Jason
| |
| Jason Berkan 2004-05-18, 12:30 pm |
| On 18 May 2004 03:50:20 -0700, darkmast2@netscape.net (Mark Rogers)
wrote:
>Compiler Errors
>26 Messages found in airrep01.cla
>
>E 190 @1/29: '2' DOS ERROR; Cannot access .sym file
>W 129 @2/1: 'MENU' Is not a procedure in the map
This procedure is not in the MAP, which means it is not called by the
program. Are you positive the screen you are modifying is used in the
program?
Jason
| |
| Jason Johnson 2004-05-18, 6:30 pm |
| The COMPILER is CCMP not CCVT. Bt everything else Jason B said is correct.
"Jason Berkan" <jason_berkan@canada.com> wrote in message
news:406ia056ch78kt20bs3o1a79mibbi1j427@
4ax.com...
> On 17 May 2004 11:44:41 -0700, darkmast2@netscape.net (Mark Rogers)
> wrote:
>
> A symbol file containing the symbols and addresses in the module. It
> is created by the compiler. The compiler (CCVT) creates a PRO and SYM
> for each CLA file. The processor (CPRO) can run these programs (the
> PRO files). The linker (CTRN) creates OBJ/BOJ files and an EXE out of
> all the PRO/SYM files.
>
>
> CCVT MYFILE.CLA
>
> You may want to be more specific regarding the errors (if any) you
> encounter compiling these CLAs, as it is possible they are not
> included in the program map, which is why they are not compiled.
> (That means they aren't used in the program, so there is no point in
> compiling them.)
>
> Jason
| |
| Mark Rogers 2004-05-18, 7:30 pm |
| The problem is I have no prior experience with Clarion so I'm moving
through it very slowly and trying to understand it. I went through all
the files I could and changed all the occurences of a certain string
to the new one and compiled the files that I could and then made the
executable files.
However when I go into the program there are still places where the
old string is being displayed and I don't know where they could be.
There are a series of files called airrep i.e. airrep01, airrep02 all
the way to airrep53 or so etc which don't compile and display the
error message I stated before. So if they aren't being used by the
program I wonder why they are there.
It's got me rather but I will keep at it and see where I can
get.
Jason Berkan <jason_berkan@canada.com> wrote in message news:<cu8ka01ai22pm4mct8u44505lr00pc31i0@4ax.com>...
> On 18 May 2004 03:50:20 -0700, darkmast2@netscape.net (Mark Rogers)
> wrote:
>
> This procedure is not in the MAP, which means it is not called by the
> program. Are you positive the screen you are modifying is used in the
> program?
>
> Jason
| |
| Neal Phillips 2004-05-18, 8:30 pm |
| Mark
Are you using the designer?
Neal
"Mark Rogers" <darkmast2@netscape.net> wrote in message
news:cfa495f1.0405181454.64cf9e31@posting.google.com...
> The problem is I have no prior experience with Clarion so I'm moving
> through it very slowly and trying to understand it. I went through all
> the files I could and changed all the occurences of a certain string
> to the new one and compiled the files that I could and then made the
> executable files.
>
> However when I go into the program there are still places where the
> old string is being displayed and I don't know where they could be.
> There are a series of files called airrep i.e. airrep01, airrep02 all
> the way to airrep53 or so etc which don't compile and display the
> error message I stated before. So if they aren't being used by the
> program I wonder why they are there.
>
> It's got me rather but I will keep at it and see where I can
> get.
>
>
> Jason Berkan <jason_berkan@canada.com> wrote in message
news:<cu8ka01ai22pm4mct8u44505lr00pc31i0@4ax.com>...[color=darkred]
| |
| Jason Johnson 2004-05-18, 8:30 pm |
| When I was designing in Clarion DOS, the main program file would have to
have a PROGRAM statement at the very top. Each procedure was put into a
seperate file, beginning with the app name and numbering from 1 on up. It
sounds like the file your are trying to compile is a MEMBER file and not the
main PROGRAM file. If it says MEMBER at the top, then it is not the main
PROGRAM file. You should try to find the .CLA file that has the PROGRAM
statement and compile it, and do a stream compile to include all the MEMBER
files. This then should compile everthing. Hope this helps.
"Mark Rogers" <darkmast2@netscape.net> wrote in message
news:cfa495f1.0405180250.50a98492@posting.google.com...
> Would first like to say thanks for the replys so far.
>
> Now onto the error message.
>
> File: "Airrep01.cla"
>
> When I try to compile it I get the following :-
>
> Compiler Errors
> 26 Messages found in airrep01.cla
>
> E 190 @1/29: '2' DOS ERROR; Cannot access .sym file
> W 129 @2/1: 'MENU' Is not a procedure in the map
> E 134 @47/11: 'REJECT_KEY' Is undefined
> E 134 @48/11: 'ACCEPT_KEY' Is undefined
> E 134 @49/11: 'F7_KEY' Is undefined
> E 134 @50/11: 'F2_KEY' Is undefined
> E 134 @51/11: 'F3_KEY' Is undefined
>
>
>
>
> Jason Berkan <jason_berkan@canada.com> wrote in message
news:<406ia056ch78kt20bs3o1a79mibbi1j427@4ax.com>...[color=darkred]
| |
| Jean Lussier 2004-05-18, 9:30 pm |
| Mark,
I have done a lot of work with Clarion for DOS.
Without seeing all the files, it will be very difficult to help.
Too much trial and error.
Will have a look at it, if you can send all the files with extensions
*.APP from source code folder
*.CLA from source code folder
*.INC from source code folder
*.MDL from Clarion program folder
Please put all of this into a single ZIP file
and email at: je_lussier -@- hotmail.com
Do NOT reply directly to this message, since the
source email address is not valid to avoid SPAM.
Jean Lussier
INFORMACCES - Montreal (Canada)
"Mark Rogers" <darkmast2@netscape.net> wrote in message
news:cfa495f1.0405181454.64cf9e31@posting.google.com...
> The problem is I have no prior experience with Clarion so I'm moving
> through it very slowly and trying to understand it. I went through all
> the files I could and changed all the occurences of a certain string
> to the new one and compiled the files that I could and then made the
> executable files.
>
> However when I go into the program there are still places where the
> old string is being displayed and I don't know where they could be.
> There are a series of files called airrep i.e. airrep01, airrep02 all
> the way to airrep53 or so etc which don't compile and display the
> error message I stated before. So if they aren't being used by the
> program I wonder why they are there.
>
> It's got me rather but I will keep at it and see where I can
> get.
| |
| Jason Berkan 2004-05-19, 12:30 pm |
| On 18 May 2004 15:54:52 -0700, darkmast2@netscape.net (Mark Rogers)
wrote:
>The problem is I have no prior experience with Clarion so I'm moving
>through it very slowly and trying to understand it. I went through all
>the files I could and changed all the occurences of a certain string
>to the new one and compiled the files that I could and then made the
>executable files.
>
>However when I go into the program there are still places where the
>old string is being displayed and I don't know where they could be.
Use CPRO, which can be used as the CPD debugger.
CPRO PROGRAM.PRO
Replace PROGRAM.PRO with the name of the main CLA, likely AIRREP.PRO,
given what information you have given. This will start your program.
Go to a screen where the string is not displayed properly and press
CTRL+BREAK. Near the top of the screen, there will be a Stopped At
prompt, which lists the CLA, procedure name and line number that is
currently executing.
(Sorry about my mistake about compiling the one module, which doesn't
work. You always have to compile the main program and stream compile
all the others. All of my CPD work involves batch files that do the
compiling, so I often forget how the process works...)
Jason
| |
| Warren Marshall 2004-05-20, 9:30 am |
| I'm still maintaining some old Clarion 2.1 applications.
The .cla files you mention were generated by a .app file originally,
although the .app may no longer be current.
You need to compile the main .cla (the one without the numbers after it, and
then do (at least the first time round) a non-conditional compile of the
child .cla files which should all be picked up and compiled in turn.
This may resolve your problem
good luck.
Warren Marshall
(Sydney, Australia)
"Mark Rogers" <darkmast2@netscape.net> wrote in message
news:cfa495f1.0405171044.7ea57f3d@posting.google.com...
> I'm not sure if this is the right place to ask this, if not maybe
> someone knows where I can find the answer.
>
> I have been asked to modify an existing program which runs in DOS (an
> old old program). What I want to do is nothing fancy just change some
> titles for screens. I've never used Clarion before and until a few
> days ago have never even heard of it. I managed to work out how to use
> the program basically and have managed to change quite a few of the
> screens.
>
> However my problem is that some of the screens I can't change because
> they won't compile. The ones that won't compile don't have a .sym file
> whereas the ones that I've managed to changed do. What is this file ?
> Is there a way to create one of these files so I can get the .cla
> files compiled with the changes I have made ?
>
> Any help on this matter will be greatly appreciated.
|
|
|
|
|