473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Pascal and C++

I need to combine (and modify) several applications into one.
Some are written in C++, other in Pascal
How can I translate the available code to use in VS.Net?
Even the C++ code won't compile (i was told it compiles under Borland)

Please advise

Jan 23 '06 #1
5 1348

"Kristelle" <pl***@letsdothatagain.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I need to combine (and modify) several applications into one.
Some are written in C++, other in Pascal
How can I translate the available code to use in VS.Net?
Even the C++ code won't compile (i was told it compiles under Borland)

For the pascal code you can try Chrome www.Chromesville.com , they have a
free commandline compiler that compiles to .net.
I can recommend the full version though (I use it for all my programming
work on .net)

btw: if the current C++ and Pascal code was not written for .net you will
have to do some work on it... do not expect it to work just by a recompile.
(removing destructors etc)

Best Regards,

Jeroen Vandezande
Jan 23 '06 #2
Kristelle wrote:
I need to combine (and modify) several applications into one.
Some are written in C++, other in Pascal
How can I translate the available code to use in VS.Net?
Even the C++ code won't compile (i was told it compiles under Borland)

Please advise


If you had access to Delphi 8/2005/2006 then it can likely update most
of the pascal to Delpi.Net for you. From here, conversion utilities
might have an easier time.

--
Robin.
<disclaimer> Not an expert </disclaimer>
Jan 23 '06 #3
Thank you Jeroen for your reply
I was however looking for tools to translate the code (to be able to
modify it), assemble the many applications, then compile everything
Is that feasible?

Jan 24 '06 #4
Borland Delphi can compile for .NET, but it really depends on the
application itself... You need to see exactly what kind of Pascal it is and
how compatible it is with Delphi.

"Kristelle" <pl***@letsdothatagain.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Thank you Jeroen for your reply
I was however looking for tools to translate the code (to be able to
modify it), assemble the many applications, then compile everything
Is that feasible?

Jan 24 '06 #5

"Kristelle" <pl***@letsdothatagain.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Thank you Jeroen for your reply
I was however looking for tools to translate the code (to be able to
modify it), assemble the many applications, then compile everything
Is that feasible?

Ok I see...

What you can try todo is get the pascal code to compile in Delphi or Chrome
and then use Reflector to view the code as C# (I guess that is your target
language?) then you can copy that code out and make adjustements.
If you are going to use Managed C++, I think there are Pascal to C
converters out there...
maybe you can try this one : http://www.garret.ru/~knizhnik/lang.html

after the conversion your are going to have a lot of work on the code before
it compiles, but it's a start.
Best Regards,

Jeroen Vandezande

Jan 25 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chris Gordon-Smith | last post by:
I am tying to call a Pascal function from C++, and vice versa. Does anyone know how to do this, or where detailed information on this topic can be found? For the C++ to Pascal call I have...
24
by: Faith Dorell | last post by:
I really donīt like C.You can write better programs in BASIC than in C, if you donīt like this language. I donīt understand how C became so popular, although much better programming languages...
14
by: digital | last post by:
hello anyone... pls explain me , how different between function and procedure for C/C++ and Pascal. Thankx......
28
by: Skybuck Flying | last post by:
Hi, I think I understand now a bit better what the difference is between a c compiler and a pascal compiler. For example: When compiling source code with a pascal compiler. The pascal...
17
by: David Scemama | last post by:
Hi, I'm writing a program using VB.NET that needs to communicate with a DOS Pascal program than cannot be modified. The communication channel is through some file databases, and I have a huge...
6
by: kkrish | last post by:
hi, I am working on an old program written in c.The program uses a function like this "unsigned long int far pascal ReadFile(char *buff,unsigned long int *size)" . Is this a PASCAL...
15
by: jacob navia | last post by:
Programming languages come and go. Still is amazing that in this survey from http://www.devsource.com/article2/0,1895,2016936,00.asp the C language comes second, right after Java. Java # What...
0
by: dhruba.bandopadhyay | last post by:
Am using Borland C++ 4.5 for the old dos.h APIs. It appears that newer versions of compilers stop support for the oldskool DOS routines. Am trying to convert/port an oldskool Pascal program that...
7
by: SMALLp | last post by:
Hy! I desperately need help! I need to make application that would accept Pascal code and check if it returns good results. My idea is (from a beginner point of view) to make application in...
54
by: Ruud | last post by:
Hallo allemaal, During the conversion of my program from Pascal to C, I was more or less able to find the C equivalent of most Pascal functions so far. Only four gave me some real trouble. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.