Callback

Discussion in 'Python' started by Ramkumar Nagabhushanam, Feb 27, 2006.

  1. Hello All,

    I am writing an application in C/C++ (VC++ 6.0 compiler) within which I want
    to make calls using the python FTP client (ftplib).

    I want to call (for example) after the necessary iniialization has been
    done:
    PyObject *t = PyObject_CallMethod (_FTP, "retrlines", ...., "LIST",
    c_function);
    Where c_function is a callback function (prototype is - static PyObject
    *c_function (char * data) ).
    I am not able to get this to work. I am not sure 3rd parameter of
    PyObject_CallMethod should be and if the way I have used the callback
    function is right.
    Any help will be most appreciated.
    Regards,
    Ram
    Ramkumar Nagabhushanam, Feb 27, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Vallelunga

    Cache with Callback problems... threading?

    Brian Vallelunga, Jul 23, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    362
    Natty Gur
    Jul 27, 2003
  2. Jim Hammond
    Replies:
    2
    Views:
    1,210
    Jim Hammond
    Oct 24, 2003
  3. Borr
    Replies:
    2
    Views:
    1,632
    bruce barker
    Nov 5, 2003
  4. Joe Fallon

    ASP.Net Cache Callback Problem

    Joe Fallon, Jan 20, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    4,874
    Joe Fallon
    Jan 20, 2004
  5. Glen
    Replies:
    3
    Views:
    559
    Craig Burkett
    Jan 23, 2004
Loading...

Share This Page