Pascal and C++

  • Thread starter Thread starter Kristelle
  • Start date Start date
K

Kristelle

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
 
Kristelle said:
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
 
Kristelle said:
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.
 
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?
 
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 said:
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
 
Back
Top