Menu

#55 Outdated DirectX Example file

None
fixed
None
2013-02-27
2013-02-26
exxoo
No

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.

1 Attachments

Discussion

  • orwelldevcpp

    orwelldevcpp - 2013-02-26

    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.

     
  • orwelldevcpp

    orwelldevcpp - 2013-02-26
    • status: open --> fixed
    • assigned_to: orwelldevcpp
    • milestone: -->
     
  • orwelldevcpp

    orwelldevcpp - 2013-02-26

    And it's a shame this example isn't near perfect, cause my expertise in programming lies at Direct3D. Sorry about that. ;)

     
  • exxoo

    exxoo - 2013-02-27

    Oh no problem. Sometimes I want to cry when I review some old code ;-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.