मैं एक सांत्वना अनुप्रयोग का उपयोग bmp फ़ाइलों का एक सेट पर कार्रवाई करने की जरूरत है, मैं TBitmap वर्ग का उपयोग कर रहा है, लेकिन कोड संकलन नहीं करता है इस त्रुटिTBitmap.Create डेल्फी सांत्वना आवेदन में काम नहीं कर
E2003 Undeclared identifier: 'Create'
क्योंकि
यह नमूना अनुप्रयोग क्यों इस कोड संकलन नहीं है मुद्दा
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils,
Vcl.Graphics,
WinApi.Windows;
procedure CreateBitMap;
Var
Bmp : TBitmap;
Flag : DWORD;
begin
Bmp:=TBitmap.Create; //this line produce the error of compilation
try
//do something
finally
Bmp.Free;
end;
end;
begin
try
CreateBitMap;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.
reproduces?