Search:

Type: Posts; User: oggie

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,160

    looks like I found the problem. I guess I was...

    looks like I found the problem. I guess I was coding with my Java hat on:
    fprintf(stderr, "video window colour key = %d\n" + get_colourkey_kvd_video_window(pVideoStruct));

    Duhh... notice the '+'...
  2. Replies
    8
    Views
    1,160

    I suppose the code I posted at the start isn't...

    I suppose the code I posted at the start isn't much help. I've changed the code somewhat so the c++ main() does all the work, and passes the object pointers to the c code.

    here's the main:

    ...
  3. Replies
    8
    Views
    1,160

    Salem, Thanks for your reply. Sorry, when I...

    Salem,

    Thanks for your reply. Sorry, when I said reference I meant pointer.
    The main is in c++. And I have to use C since it's pre-existing code that has to be re-used.

    So do I just create...
  4. Replies
    8
    Views
    1,160

    I found that example before. But my scenario...

    I found that example before.

    But my scenario is a little different. In that example, the c++ class creates and instance of Fred, and calls the c function passing the instance of the c++ object. ...
  5. Replies
    8
    Views
    1,160

    using c++ objects from C

    I'm trying to use c++ objects from my c code. I need to create the c++ object, and make multiple calls from the c code to the methods in the class.

    Here's what I've implemented:

    In the C file...
Results 1 to 5 of 5