Cleaning upAs mentioned above, during enumeration of the various Display Modes and Devices, the DirectDraw and Direct3D objects should be released at the end of the loop. Releasing all the allocated memory is always a good idea, and can be achieved as follows: ConclusionAs you can see, there is more work involved than what I have outlined here. You need a way to either automatically select the enumerated values, or a way to allow your users to select them. Most of the information contained in this article is also in the DirectX 7 Docs. If you need more information, I suggest looking there. For a full, uninterrupted listing of the code contained in this article, click here |