title: Usage of TBitmapCodecManager in C++
body: <p>Please tell me how to use <code>TBitmapCodecManager</code> correctly in C++. My development environment is C++Builder 10.4 (Community Eddition) under FMX.</p>
  <p>Here is the code of Delphi's <code>TBitmapCodecManager</code> sample rewritten for C++ for the purpose of PNG-&gt;ICO conversion.</p>
  <p>However, a compile error occurs only on the last line:</p>
  <blockquote>
  <p>bcc32 error: [E2108] typedef 'TBitmapCodecManager' is used incorrectly.</p>
  </blockquote>
  <pre class="lang-cpp prettyprint-override"><code>TMemoryStream * strm;
  strm = new TMemoryStream;
  
  TBitmapSurface * bmpss;
  bmpss = new TBitmapSurface;
  
  TBitmapCodecSaveParams * pm;
  pm = new TBitmapCodecSaveParams;
  
  pm-&gt; Quality = 100;
  bmpss-&gt; Assign (Image1-&gt; Bitmap);
  
  TBitmapCodecManager.SaveToStream (strm, bmpss,'.ico', pm); // &lt;-- error here
  </code></pre>
  <p>Could you please tell me the correct usage?</p>
  <p>ref)<a href="https://stackoverflow.com/questions/72625627/png-bmp-ico-by-fmx-c-tbitmapcodecmanager">png / bmp-&gt; ico by FMX (c ++) TBitmapCodecManager</a></p>