Archived

This topic is now archived and is closed to further replies.

CArrayList in CD3DEnumeration

This topic is 5314 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am working my through learning D3D and I notice that in the D3DEnumeration.h and .cpp files Microsoft includes with DX9 they created an expandable array class called CArrayList. Is there a reason to do this instead of simply using an STL container either a list or vector? Thanks Todd

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
There is no defined linkage for STL containers, so putting that in a system library would forever tie you not only to a specific compiler, but also a specific version of the STL.

Share this post


Link to post
Share on other sites
CArrayList was used because that was the best solution when that sample was originally written.

In the future the samples will probably use STL when a container array/vector/etc is needed.



Development Lead, DirectX
Windows Graphics & Gaming Technology

Share this post


Link to post
Share on other sites