How Can I solve this error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Back
Top