Please tell me how to use TBitmapCodecManager correctly in C++. My development environment is C++Builder 10.4 (Community Eddition) under FMX.
Here is the code of Delphi's TBitmapCodecManager sample rewritten for C++ for the purpose of PNG->ICO conversion.
However, a compile error occurs only on the last line:
bcc32 error: [E2108] typedef 'TBitmapCodecManager' is used incorrectly.
TMemoryStream * strm;
strm = new TMemoryStream;
TBitmapSurface * bmpss;
bmpss = new TBitmapSurface;
TBitmapCodecSaveParams * pm;
pm = new TBitmapCodecSaveParams;
pm-> Quality = 100;
bmpss-> Assign (Image1-> Bitmap);
TBitmapCodecManager.SaveToStream (strm, bmpss,'.ico', pm); // <-- error here
Could you please tell me the correct usage?