Can you code Windows in C++ or is it just in C? Does it matter?
Also, If you're going to use OpenGL or DirectX, do you need Windows32 API?
Can you code Windows in C++ or is it just in C? Does it matter?
Also, If you're going to use OpenGL or DirectX, do you need Windows32 API?
Last edited by blankstare77; 07-30-2005 at 06:40 PM.
You can create programs for Windows in whatever language you like, be it C, C++, assembly language... the only requirement is that it supports the importing of C-style functions. This is because the vast majority of the Windows API was written with C programming in mind, as was the fashion in the late 80s/early 90s.
Recent API additions, for example GDI+, require C++ or compatible.
To be honest, I tend to find interacting with the API in anything other than a C derivative language a chore, especially old-style Visual Basic. There's no 1:1 correlation with C data types, so you end up with hacks all over the place.
And yes, you'll always need to use at least 1 or 2 API functions to make any Windows program.