need help for extending and embedding

From: Ing Giuseppe Monteleone (info_at_ing-monteleone.com)
Date: 02/29/04

  • Next message: Bob Ippolito: "Re: Thoughts on new vs traditional idioms"
    Date: Sun, 29 Feb 2004 14:20:46 GMT
    
    

    I'm trying to extend and embed the python language in a Borland C++Builder
    application but I have some problem

    Using PyRun_SimpleFile() I got and invalid access error, menwhile using
    PyRun_SimpleString I cannot have no effect.

    I used the standard sequence embedding code

    Py_Initialize()

    Py_InitModule()
    PyImport_AddModule()
    PyRun_SimpleFile()

    I checked parameter many times, but the program won't work. what's wrong ?

    In my opinion i think that could be some problem with stdion and stdout but
    I acnnot redirect them from C before starting file with PyRun_SimpleFile.

    can anyone help me ?

    Thanks

    Ing Giuseppe Monteleone


  • Next message: Bob Ippolito: "Re: Thoughts on new vs traditional idioms"

    Relevant Pages

    • Re: How Many Delphi Users Did or Did Not Learn Pascal At University?
      ... I understand why Borland keeps you on the stable! ... > Now I just hope you extend your knowledge by how to insert line breaks ... Lol, thanks. ... Do my posts not display or word wrap correctly? ...
      (borland.public.delphi.non-technical)
    • Re: Some comments on Borlands predicament
      ... MS owns the .NET framework classes. ... MS can extend, change, trash, ... Even if Borland extended part ... I doubt that MS will do anything that breaks Borland functionality without ...
      (borland.public.delphi.non-technical)
    • Re: Technical Strategy
      ... > in Borland for itself (e.g. QC, IDE controls, etc.) ... but is probably not good for Borland R&D productivity. ... concepts of their favorite programming IDE, ... So if Borland could just upgrade (extend?) the ...
      (borland.public.delphi.non-technical)
    • Re: Newsreaders
      ... "Nick Hodges " wrote in message ... > Would that you and others extend the same grace to Borland. ...
      (borland.public.delphi.non-technical)