Advertisement

Pascal code

Started by November 03, 2000 04:05 AM
3 comments, last by Danias 24 years, 2 months ago
I have this code purely written in pascal, but I want to implement this in my c++ project. I''ve read somewhere that it''s possible to include pascal-code in c++. Does anyone know how this can be done?
The Borland C++ Builder compiles both C/C++ and Pascal,
but I think that´s the only one...
Advertisement
Just go out and buy a big phat book on pascal (real old coppies sould be easy to find in a second hand bookstore). Then it''s simply a matter of converting the code yourself (that''s what I''m doing.)

However, there has to be an easier way... is there a program available for people too lazy to learn Pascal just to translate it to C/C++???

Just some thoughts....

Simon Wilson,
XEOS Digital Development
XEOS Digital Development - Supporting the independant and OpenSource game developers!
The best way to do this is simply to translate the code to C++ it''s not that complicated. Most pascal functions have their C/C++ equivalent.

Cyberdrek
Headhunter Soft
DLC Multimedia
[Cyberdrek | ]
It depends on what the Pascal code is for, of course, but you could try sticking it in a DLL. Or a COM object. Or an ActiveX control. Or...

Well, you get the idea

Otherwise, I think it should be possible to have your Pascal compiler generate an OBJ file and to link that to your C app.

Edited by - delphi3d on November 3, 2000 8:39:12 AM
Tom Nuydens delphi3d@gamedeveloper.org www.gamedeveloper.org/delphi3d

This topic is closed to new replies.

Advertisement