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 '+'...
Type: Posts; User: oggie
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 '+'...
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:
...
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...
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. ...
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...