DirectX programming in C?
In the past I have created DirectX applications in the C++ programming language, however, I would like to know if it is possible to do this using the C programming language. Thanks. Yes it is possible. DirectX exposes a COM interface and C is capable of consuming them. It won't be a whole boat load of fun though! The Open Watcom C/C++ compiler comes with DirectX sample applications in both C++ and C. Both work. They are under WATCOM\samples\directx\cpp and WATCOM\samples\directx\c respectively in OW 1.9. This is what the code looks like in C++: hr = d3d->GetDeviceCaps(D3DADAPTER_DEFAULT,