[Q] How to embed Python with Borland C++ 5.02?

Brad Clements bkc at Murkworks.com
Fri May 21 10:46:42 EDT 1999


I have been able to use python15.dll with C++ Builder 4.

See my other post about problems using PyRun_SimpleFile and friends. You can
not open a FILE in your borland .exe and pass it to python15.dll because
they're using different RTLs

Also note that I had to make some changes to the python.h and config.h
because these headers assume that borland is still a 16-bit only compiler.

Generally speaking, python needs quite a bit of tidying up with respect to
different compilers. For example, I use Borland C to create Novell NetWare
NLMs, so basing all decisions on the predefined macros is not the correct
solution.



--
Brad Clements,
bkc at murkworks.com
Adrian Eyre <a.eyre at optichrome.com> wrote in message
news:000301bea363$730638f0$2bcbd9c2 at optichrome.com...
> > I can't embed Python in a C++ application using
> > Borland C++ 5.02. Maybe I missed something trivial.
> > Do anyone succeed? Please, tell me how.
>
> More importantly, has anyone managed to build Python with Borland C++ ?
> If you can build it, you should be able to embed it.
>
> --------------------------------------------
> Adrian Eyre <mailto:a.eyre at optichrome.com>
> Optichrome Computer Solutions Ltd
> Maybury Road, Woking, Surrey, GU21 5HX, UK
> Tel: +44 1483 740 233  Fax: +44 1483 760 644
> http://www.optichrome.com
> --------------------------------------------
>






More information about the Python-list mailing list