DirectDraw and C?
I'm curious. I was reading an article on GD.net yesterday and following it along (what the hell) and when I got to a certain part, it stopped compiling. I read the forum thread on the article and apparently I would have to go C++ to get it to compile, but someone mentioned that "there is a way to do it in C", though he didn't say what. I've not found anything.
It was something to do with using COM (the thing that wouldn't compile).
Sorry if this sounds too vague, it's just a long shot to see if anyone knows.
>> apparently I would have to go C++
You could try that forum too i suppose. They may know if it's C++ specific ... but you want a C solution i take it. Sorry, I can't help you there.
Hmm I'll get slapped for cross posting. Maybe this would've been better on the tech board.
DirectDraw and COM are windows things - moved to windows board.
I use DirectX in C all the time - what's your point?
The main difference being that there's no this, so you have to specify the pointer to the instance of the object you're messing with as the first parameter to any member function. Also function pointers are acquired through a struct called "lpVtbl".
So instead of
Oh, and if you think that's hard, try forgoing explicit function calls and do it all through COM's IDispatch interface. In C. Fun fun fun!!! :D
Well that seems simple enough (the first part).