A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Wierd question - a pascal compiler for WIn7???



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old March 15th 19, 07:23 PM posted to alt.windows7.general
pyotr filipivich
external usenet poster
 
Posts: 752
Default Wierd question - a pascal compiler for WIn7???


This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.
--
pyotr filipivich
The question was asked: "Is Hindsight overrated?"
In retrospect, it appears to be.
Ads
  #2  
Old March 15th 19, 07:54 PM posted to alt.windows7.general
Shadow
external usenet poster
 
Posts: 1,638
Default Wierd question - a pascal compiler for WIn7???

On Fri, 15 Mar 2019 12:23:01 -0700, pyotr filipivich
wrote:


This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?


ftp://ftp.freepascal.org/pub/lazarus/releases/

You'll probably have to adapt some of the code. It's Free
Pascal.
[]'s

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.

--
Don't be evil - Google 2004
We have a new policy - Google 2012
Nineteen Eighty-Four was a work of FICTION !!!! - Orwell

  #3  
Old March 15th 19, 08:01 PM posted to alt.windows7.general
Big Al[_5_]
external usenet poster
 
Posts: 1,588
Default Wierd question - a pascal compiler for WIn7???

On 3/15/19 3:23 PM, pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.

Microsoft gives away visual studio and you can compile c in that.
I've got an install msi for 2012 visual c++, haven't used it in 3 years.
I went to my link in Firefox and here it is, but it points to 2017 now.

https://docs.microsoft.com/en-us/pre...31853(v=vs.110)


Source Forge is a great place to shop:
https://sourceforge.net/projects/freepascal/

Al
  #4  
Old March 15th 19, 08:06 PM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default Wierd question - a pascal compiler for WIn7???

pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


Never used it (nor Pascal much) but my recollection is that Delphi
superceded Object Pascal. I don't remember back to Turbo Pascal to
remember if it encompassed the object paradigm. There are Delphi
newsgroups where you could inquire about converting Turbo Pascal to
Delphi. Unless you know C++, I would think moving from Turbo Pascal to
Delphi would be more familiar to you.

You sure the problem isn't with the bitwidth of your [compiled] Pascal
code? Windows 7 32-bit would support both 32-bit programs and by using
its WOW (Windows on Windows) emulator it can also run 16-bit programs.
However, if you have Windows 7 64-bit then it runs only 64-bit programs
and 32-bit programs using its WOW.

https://en.wikipedia.org/wiki/Windows_on_Windows

You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.
  #5  
Old March 15th 19, 08:36 PM posted to alt.windows7.general
Mark Blain
external usenet poster
 
Posts: 84
Default Wierd question - a pascal compiler for WIn7???

pyotr filipivich wrote in
:

I have a program written in Pascal and Windows 7 won't run it.

Tells me to contact the developer and get support. Except that I
am the
developer...


A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr


( Found at: http://www.freebyte.com/programming/pascal/ )
FreePascal has 32-bit and 64-bit Windows versions and aims to be
Borland-compatible. There is specific information on their website
about porting programs from Turbo.
http://wiki.lazarus.freepascal.org/Turbo_Pascal
https://www.freepascal.org/port.html
https://www.freepascal.org/

You could also try running the program without recompiling by using a
virtual machine or emulator.
http://www.freebyte.com/operatingsystems/#emulators
  #6  
Old March 15th 19, 11:19 PM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Wierd question - a pascal compiler for WIn7???

pyotr filipivich wrote:
This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


There's probably more than one P2C out there.
This page hints at some of the "translation" problems.

http://www.garret.ru/ptoc/Readme.htm

Pascal is tightly typed, while C is not.
C is like assembler, wearing a dress.
Pascal will cure you of a lot of bad habits,
whereas C encourages those bad habits.

Paul
  #7  
Old March 15th 19, 11:33 PM posted to alt.windows7.general
pyotr filipivich
external usenet poster
 
Posts: 752
Default Wierd question - a pascal compiler for WIn7???

VanguardLH on Fri, 15 Mar 2019 15:06:54 -0500 typed in
alt.windows7.general the following:
pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


Never used it (nor Pascal much) but my recollection is that Delphi
superceded Object Pascal. I don't remember back to Turbo Pascal to
remember if it encompassed the object paradigm. There are Delphi
newsgroups where you could inquire about converting Turbo Pascal to
Delphi. Unless you know C++, I would think moving from Turbo Pascal to
Delphi would be more familiar to you.

You sure the problem isn't with the bitwidth of your [compiled] Pascal
code? Windows 7 32-bit would support both 32-bit programs and by using
its WOW (Windows on Windows) emulator it can also run 16-bit programs.
However, if you have Windows 7 64-bit then it runs only 64-bit programs
and 32-bit programs using its WOW.

https://en.wikipedia.org/wiki/Windows_on_Windows

You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.


Sorry,. "I thought everybody knew..." Windows 7 Pro 64 bit.

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I get this same message whether the comparability mode is set for
XP (sp3), XP (sp2), Windows 98/ME, or Windows 95, Windows NT 4.0
(Service Pack 5).

So, as far as I can tell, This is a wee bit past antiquated. Hmmm,
compiled 10/17/1995. I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?

I am now

--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?
  #8  
Old March 15th 19, 11:33 PM posted to alt.windows7.general
pyotr filipivich
external usenet poster
 
Posts: 752
Default Wierd question - a pascal compiler for WIn7???

Big Al on Fri, 15 Mar 2019 16:01:43 -0400 typed
in alt.windows7.general the following:
On 3/15/19 3:23 PM, pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.

Microsoft gives away visual studio and you can compile c in that.
I've got an install msi for 2012 visual c++, haven't used it in 3 years.
I went to my link in Firefox and here it is, but it points to 2017 now.

https://docs.microsoft.com/en-us/pre...31853(v=vs.110)


Now all I'd have to do is learn C++.


Source Forge is a great place to shop:
https://sourceforge.net/projects/freepascal/

Al

--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?
  #9  
Old March 16th 19, 12:17 AM posted to alt.windows7.general
Bill in Co[_3_]
external usenet poster
 
Posts: 303
Default Wierd question - a pascal compiler for WIn7???

pyotr filipivich wrote:
VanguardLH on Fri, 15 Mar 2019 15:06:54 -0500 typed in
alt.windows7.general the following:
pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


Never used it (nor Pascal much) but my recollection is that Delphi
superceded Object Pascal. I don't remember back to Turbo Pascal to
remember if it encompassed the object paradigm. There are Delphi
newsgroups where you could inquire about converting Turbo Pascal to
Delphi. Unless you know C++, I would think moving from Turbo Pascal to
Delphi would be more familiar to you.

You sure the problem isn't with the bitwidth of your [compiled] Pascal
code? Windows 7 32-bit would support both 32-bit programs and by using
its WOW (Windows on Windows) emulator it can also run 16-bit programs.
However, if you have Windows 7 64-bit then it runs only 64-bit programs
and 32-bit programs using its WOW.

https://en.wikipedia.org/wiki/Windows_on_Windows

You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.


Sorry,. "I thought everybody knew..." Windows 7 Pro 64 bit.

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I get this same message whether the compatibility mode is set for
XP (sp3), XP (sp2), Windows 98/ME, or Windows 95, Windows NT 4.0
(Service Pack 5).

So, as far as I can tell, This is a wee bit past antiquated. Hmmm,
compiled 10/17/1995. I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?

I am now


I think it was. I remember using Turbo Pascal back then. You'll need x86
32 bit to even run it. I think the object oriented version ("OOPS") of
Turbo Pascal came out later, like in versions 5 or 6 (IIRC), and then
finally, Borland Delphi came out and superceded it. I loved Turbo Pascal
just for writing some basic programs for myself, and the fact that it was
nearly self documenting (to some extent), at least in comparison to C, which
is more cryptic.


  #10  
Old March 16th 19, 12:46 AM posted to alt.windows7.general
Java Jive
external usenet poster
 
Posts: 391
Default Wierd question - a pascal compiler for WIn7???

On 15/03/2019 23:33, pyotr filipivich wrote:

VanguardLH on Fri, 15 Mar 2019 15:06:54 -0500 typed in
alt.windows7.general the following:

pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Windows_on_Windows


You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.


Sorry,. "I thought everybody knew..." Windows 7 Pro 64 bit.

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?


That is almost certainly your problem. If you can find a PC to run
turbo Pascal, you might be able to compile a 32-bit version, and so get
a working version ... Or was Turbo Pascal itself only 16-bit - TBH,
it's so long ago that I can't remember?!

As others have mentioned, Pascal morphed into Delphi, so a 32-bit Delphi
compiler may be able to compile your original source code with little or
no tweaks being required.

  #11  
Old March 16th 19, 01:11 AM posted to alt.windows7.general
pyotr filipivich
external usenet poster
 
Posts: 752
Default Wierd question - a pascal compiler for WIn7???

"Bill in Co" surly_curmudgeon@earthlink on Fri, 15 Mar 2019 18:17:16
-0600 typed in alt.windows7.general the following:

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I get this same message whether the compatibility mode is set for
XP (sp3), XP (sp2), Windows 98/ME, or Windows 95, Windows NT 4.0
(Service Pack 5).

So, as far as I can tell, This is a wee bit past antiquated. Hmmm,
compiled 10/17/1995. I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?

I am now


I think it was. I remember using Turbo Pascal back then. You'll need x86
32 bit to even run it. I think the object oriented version ("OOPS") of
Turbo Pascal came out later, like in versions 5 or 6 (IIRC), and then
finally, Borland Delphi came out and superceded it. I loved Turbo Pascal
just for writing some basic programs for myself, and the fact that it was
nearly self documenting (to some extent), at least in comparison to C, which
is more cryptic.


C is _very_ user friendly. It is just rather ... "selective"
about who its friends are.

--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?
  #12  
Old March 16th 19, 01:11 AM posted to alt.windows7.general
pyotr filipivich
external usenet poster
 
Posts: 752
Default Wierd question - a pascal compiler for WIn7???

Paul on Fri, 15 Mar 2019 19:19:52 -0400 typed
in alt.windows7.general the following:


*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


There's probably more than one P2C out there.
This page hints at some of the "translation" problems.

http://www.garret.ru/ptoc/Readme.htm

Pascal is tightly typed, while C is not.
C is like assembler, wearing a dress.
Pascal will cure you of a lot of bad habits,
whereas C encourages those bad habits.


I had a neat little C program which would clean up text files by
just not passing anything which wasn't in the printable ASCII range. I
think I had it doing arithmetic with character variables.


--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?
  #13  
Old March 16th 19, 01:15 AM posted to alt.windows7.general
Shadow
external usenet poster
 
Posts: 1,638
Default Wierd question - a pascal compiler for WIn7???

On Fri, 15 Mar 2019 16:54:19 -0300, Shadow wrote:

On Fri, 15 Mar 2019 12:23:01 -0700, pyotr filipivich
wrote:


This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?


ftp://ftp.freepascal.org/pub/lazarus/releases/

You'll probably have to adapt some of the code. It's Free
Pascal.
[]'s


I forgot to mention, it has a switch to compile Borland Pascal
(but then it won't save it as a Lazarus project, it'll just compile).
Wiki he

https://en.wikipedia.org/wiki/Lazarus_%28IDE%29

You didn't mention if your program is console or GUI. Lazarus
does both. Simple tutorials (memory jog) on Youtube, by
SchoolFreeware.
[]'s


--
Don't be evil - Google 2004
We have a new policy - Google 2012
Nineteen Eighty-Four was a work of FICTION !!!! - Orwell

  #14  
Old March 16th 19, 01:19 AM posted to alt.windows7.general
Bill in Co[_3_]
external usenet poster
 
Posts: 303
Default Wierd question - a pascal compiler for WIn7???

Java Jive wrote:
On 15/03/2019 23:33, pyotr filipivich wrote:

VanguardLH on Fri, 15 Mar 2019 15:06:54 -0500 typed in
alt.windows7.general the following:

pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Windows_on_Windows

You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.


Sorry,. "I thought everybody knew..." Windows 7 Pro 64 bit.

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?


That is almost certainly your problem. If you can find a PC to run
turbo Pascal, you might be able to compile a 32-bit version, and so get
a working version ... Or was Turbo Pascal itself only 16-bit - TBH,
it's so long ago that I can't remember?!

As others have mentioned, Pascal morphed into Delphi, so a 32-bit Delphi
compiler may be able to compile your original source code with little or
no tweaks being required.


Pretty sure it was 16 bit, as it was DOS based. My belief is an older Win
XP 32 bit PC running a DOS shell could run it. As I recall, the 32 bit
computers can run 16 bit code, but not the 64 bit versions, which is one
reason I got a 32 bit version of Windows 7, and by choice. Another reason
was the singularity in where user programs are installed - always in the one
and only, Program Files directory (unlike in the x64 versions).


  #15  
Old March 16th 19, 01:21 AM posted to alt.windows7.general
Bill in Co[_3_]
external usenet poster
 
Posts: 303
Default Wierd question - a pascal compiler for WIn7???

pyotr filipivich wrote:
"Bill in Co" surly_curmudgeon@earthlink on Fri, 15 Mar 2019 18:17:16
-0600 typed in alt.windows7.general the following:

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I get this same message whether the compatibility mode is set for
XP (sp3), XP (sp2), Windows 98/ME, or Windows 95, Windows NT 4.0
(Service Pack 5).

So, as far as I can tell, This is a wee bit past antiquated. Hmmm,
compiled 10/17/1995. I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?

I am now


I think it was. I remember using Turbo Pascal back then. You'll need
x86 32 bit to even run it. I think the object oriented version ("OOPS")
of Turbo Pascal came out later, like in versions 5 or 6 (IIRC), and then
finally, Borland Delphi came out and superceded it. I loved Turbo
Pascal just for writing some basic programs for myself, and the fact
that it was nearly self documenting (to some extent), at least in
comparison to C, which is more cryptic.


C is _very_ user friendly. It is just rather ... "selective"
about who its friends are.


Yeah, I'd say! But at least not as selective as Assembler. :-)


 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 03:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 PCbanter.
The comments are property of their posters.