I have MFC Application with Managed C++ enabled when I try to create below
object a compiler generate error ,why?
ImageCodecInfo* info;
ImageCodecInfo* ice[] = ImageCodecInfo::GetImageEncoders();
error C2691: 'unsigned char __gc[]' : invalid type for __gc array element
Tamas Demjen - 19 May 2005 21:22 GMT
Unfortunately you can not call GetImageEncoders in MC++, only in C#.
It's supposed to be fixed in Whidbey.
http://tinyurl.com/d25nt
http://tinyurl.com/cguug
Tom
> I have MFC Application with Managed C++ enabled when I try to create below
> object a compiler generate error ,why?
[quoted text clipped - 4 lines]
>
>