Outdated DirectX Example file
A free, portable, fast and simple C/C++ IDE
Brought to you by:
orwelldevcpp
Hello,
I just updated the DirectX Example file that is shipped with the current devCpp. There have been some warnings, that are treated as errors by default. (Submitting temporary pointers to DX Functions). I have changed this for a better coding. Beginners wouldn't understand the issue, too I guess ;-)
Also formatted the code a little bit and changed FLOAT to float BOOL to bool ShowWindow(hwnd, 1) to ShowWindow(hwnd, SW_SHOW).
And one last point:
It would be nice, if you could add a detection where DevCpp is installed. In my case, the library includes weren't correct since I modified the installation path.
Thank you, I've merged it into 5.4.1. I caught the pointer-to-temporary problem too a few days ago, but the other changes are welcome too.
And it's a shame this example isn't near perfect, cause my expertise in programming lies at Direct3D. Sorry about that. ;)
Oh no problem. Sometimes I want to cry when I review some old code ;-)