I'm attaching the latest modification. You'll get the option to select DirectX 8 / DirectX 9 and setup the project accordingly. But default sample needs to be changed. So just remove the default generated file and attach your own code to the project.
BTW, I've never used DirectX for any of my project. So there could be errors in Project setup. Please feel free to modify it and post it.
I need couple of infos:
1. I'm using Win32-api-3.9 and MinGW runtime 3.12 to compile DirectX sample. But there is no DirectX 8 headers and thus I can't test it.
2. Are Direct X headers and libraries are available separately for MinGW??
Regards,
Biplab
[attachment deleted by admin]