开发者

CComSafeArray change no of elements

开发者 https://www.devze.com 2023-03-16 00:42 出处:网络
I have created CComSafeArray object having 32 elements using the following statements. But after some operations I came to know that I need only 3 elements in the safe array. Is it possible to change

I have created CComSafeArray object having 32 elements using the following statements. But after some operations I came to know that I need only 3 elements in the safe array. Is it possible to change the number of elements 开发者_如何学Goin the safe array after creating it?

CComSafeArray<VARIANT> x(32);


Are you by any chance looking for the CComSafeArray::Resize() member function? http://msdn.microsoft.com/en-us/library/9758bsfw(v=vs.71).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号