Link to home
Start Free TrialLog in
Avatar of asterflower
asterflower

asked on

Pascal to Basic converter

Does anyone know of a (Turbo) Pascal to (Visual) Basic converter?
Avatar of omsec
omsec

sounds a bit "strange" because Turbo Pascal is for DOS and Visual Basic for Windows. As i know VB is a RAD-IDE (rapid aplication development), i think u would have to "translate" it manually
There's no any Turbo Pascal to Visual Basic converter, because a converting like that seems to be unnessesary. There's no relationship between Turbo Pascal (a simple compiler for DOS programming) and Visual Basic (an Visual IDE for Windows programming) because their outputs, running modes and environments are different (screen vs. windows, real mode vs. enhanced mode, DOS vs. Windows). Another diferrence is that the libraries (Turbo Pascal uses Unit vs. Visual Basic uses DLL). So we can say that it's unable to built a acceptable Turbo Pascal to Visual Basic converter. If you want to convert only for understanding source code (because you only know Visual Basic), my advice is that you should learn Turbo Pascal (it's very easy to learn). If you want to convert for making a Windows application from a DOS program (but you couldn't use Visual Basic), my advice is that you should learn Visual Basic and write another application (because you will find out that the old program is much strange to Windows programming rules). And Visual Basic is easy to learn, too.
Avatar of asterflower

ASKER

I am converting some data acquistion programs that were written in Turbo Pascal (DOS) to the Visual Basic subset in Excel (Win95/Mac).  Was looking for some pre-processing/converter that would save time. Kown both languages, and the answer was not to my question, but trying to give advice. Thanks anyway.  Ron H.
There's a pretty good pascal to C converter: p2c .
It's available with sources and highly configurable.
Not exactly what you are looking for, but probably you manage to adapt it to become a p2vb .
ASKER CERTIFIED SOLUTION
Avatar of winsumpu
winsumpu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I too am interested in a Pascal to VB converter. Some of you seem to think that strange but I (and I am sure many others) have a lot of programs written in Pascal for DOS and now want the same functionality in Windows. My programs do a lot, lot more than simply drive the user interface; they perform calculations, data manipulations etc. - such things are not tied to DOS or Windows! I reckon that >98% of my Pascal code can be converted to VB - i.e. does not involve calling DLLs or running the user interface. A converter would save a tremendous amount of work.