cambalinho 125 Practically a Posting Shark

i'm getting problems, again, on how i get the frame delay on gif files using Image class:

UINT TotalBuffer = img2.GetPropertyItemSize(PropertyTagFrameDelay);
            //img2 = (PropertyItem*)malloc(TotalBuffer);//my compiler gives an error
            img2.GetPropertyItem(PropertyTagFrameDelay,TotalBuffer,&img2);
            framedelay=TotalBuffer;

seems that the GDIPLUS can be a litte diferent from compiler to compiler :(
so how can i get the frame delay?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.