PDA

View Full Version : stuck converting python headers to pascal



edexter
27-09-2007, 12:04 AM
I started to convert the header files for python.h over to pascal so that python can be embeded in pascal.. I have no idea where to look to deal with the errors I get from h2pas. I.E. what to do with what doesn't convert over.. Is there a guide on this somewhere? ?? What I have so far is at

http://groups.google.com/group/dexrow-software-and-programming-group/web/python+headers.zip

arthurprs
27-09-2007, 02:00 AM
Have a look at MMM-Experts header translation

Info -> http://mmm-experts.com/Products.aspx?ProductId=3
Download -> http://mmm-experts.com/Downloads.aspx?ProductId=3

edexter
27-09-2007, 02:50 PM
I will look into that... I have both borland and microsoft c if it is easier to embed the .dll in another .dll and define the .h in a less complex way.... Is there a good tutorial around for that??

technomage
27-09-2007, 03:31 PM
There is alredy a conversion for Python to Pascal

This link should help.

http://www.atug.com/andypatterns/pythonDelphiTalk.htm

technomage
27-09-2007, 04:50 PM
I realise that the previous link was for Delphi, the raw headers can be used in Free Pascal (with a few tweaks) I think.

marcov
28-10-2007, 11:05 AM
Delphi headers usually have to be cleaned up for 64-bit issues.