[fpc-pascal] XML unit selection

2006-11-13 Thread Marc Santhoff
Hi, while planning an XML-centric program I found some related units in the fcl sources and many more inside the lazarus source tree. Which set of them would be the best choice? According to the comments in some files there is (or was) change to come. Do these xml parsers validate against a

Re: [fpc-pascal] XML unit selection

2006-11-13 Thread Michael Van Canneyt
On Mon, 13 Nov 2006, Marc Santhoff wrote: Hi, while planning an XML-centric program I found some related units in the fcl sources and many more inside the lazarus source tree. Which set of them would be the best choice? It depends on what you want. The XML support in FPC is based on

Re: [fpc-pascal] XML unit selection

2006-11-13 Thread Mattias Gaertner
On Mon, 13 Nov 2006 10:53:29 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Mon, 13 Nov 2006, Marc Santhoff wrote: Hi, while planning an XML-centric program I found some related units in the fcl sources and many more inside the lazarus source tree. Which set of

[fpc-pascal] Executing python code from a pascal program

2006-11-13 Thread Adrian Maier
Hello, I am trying to write a program that is embedding the python interpreter in order to execute python code. I don't need to transfer values between pascal and python. More specifically, I'm trying to convert to pascal the following: #include Python.h int main(int argc, char *argv[]) {

Re: [fpc-pascal] Executing python code from a pascal program

2006-11-13 Thread Leonardo M. Ram
Try addign cdecl or stdcall at the end procedure Py_Initialize;external name 'Py_Initialize'; cdecl; // or stdcall; procedure Py_Finalize;external name 'Py_Finalize'; cdecl; // or stdcall; --- Adrian Maier [EMAIL PROTECTED] wrote: Hello, I am trying to write a program that is embedding the

Re: [fpc-pascal] Executing python code from a pascal program

2006-11-13 Thread Leonardo M. Ram
I created a Python.pas unit this way using Delphi and it works correctly (note the cdecl directive before external): unit python; interface procedure Py_Initialize; cdecl; external 'python24.dll'; procedure Py_Finalize; cdecl; external 'python24.dll'; function

Re: [fpc-pascal] XML unit selection

2006-11-13 Thread Marc Santhoff
Am Montag, den 13.11.2006, 10:53 +0100 schrieb Michael Van Canneyt: On Mon, 13 Nov 2006, Marc Santhoff wrote: Hi, while planning an XML-centric program I found some related units in the fcl sources and many more inside the lazarus source tree. Which set of them would be the best

Re: [fpc-pascal] Executing python code from a pascal program

2006-11-13 Thread Adrian Maier
On 11/13/06, Leonardo M. Ramé [EMAIL PROTECTED] wrote: I created a Python.pas unit this way using Delphi and it works correctly (note the cdecl directive before external): unit python; interface procedure Py_Initialize; cdecl; external 'python24.dll'; procedure Py_Finalize; cdecl;