I have the following simple code to convert a clipboard image to bmp and then to png:
if Clipboard.HasFormat (CF_PICTURE) then
begin
bitmap := TBitmap.Create;
png := TPNGImage.Create;
try
Delphi is a well-known rapid application development tool (Rapid Application Development, RAD) under the Windows platform. Its predecessor was the “Borland Turbo Pascal” that was popular in the DOS era. The earliest version was developed by the American Borland company in 1995. The main creator is Anders Hejlsberg. After several years of development, this product has also been transferred to the Embarcadero company. Delphi is an integrated development environment (IDE). The core used is Object Pascal developed from the traditional Pascal language. It uses a graphical user interface as the development environment, and uses IDE, VCL tools and compilers to cooperate with the function of connecting to the database. An application development tool centered on object-oriented programming.
I have the following simple code to convert a clipboard image to bmp and then to png:
if Clipboard.HasFormat (CF_PICTURE) then
begin
bitmap := TBitmap.Create;
png := TPNGImage.Create;
try
We hope to migrate from Delphi 7.0 to Delphi 2009 in order to keep pace with modern IDEs and current technologies. Our target platform is .NET. What is the best way to achieve this goal? I will
I want to know if there is an exception/error, which will cause your code to jump to an except block but will not be processed by the E: exception.
try
i := StrToInt(s);
{…do a lot more..
I use Delphi 2010 and TListView to list names and other data. The first two columns are Last Name&Name
Caption = Last Name
SubItems[0] = First Name
How to sort ListView by these two co
I have a rather strange problem, I can’t find the document. I have a Delphi program that uses Delphi’s built-in TDBMemo component, because the component needs to extract data from a field in the da
I would like to know if there is a way to add custom methods for existing/included class components in Delphi Pascal.
I want to use it to look like Rotate StringGrid like this:
StringGr
I have a TCustomClientDataSet (in memory), which is used to perform some filtering in a Delphi program.
My filtering code is as follows:
CDSFilteredGroup.Filter :=’ACP_type = 1 AND ACP_
I need to read from a .log file that is constantly changing from another application. (Adding more data often)
So I started from the beginning:
var
LogFile: TStrings;
Stream: TStream;
I am porting an old application written in Delphi to Java.
I have some trouble using this function, it calculates the CRC of the transmitted message.
This is the original code:
if(Rece
I have been trying to solve this problem, it seems to take too long to do some simple things.
I have such a file:
[
{
“FirstName”: “Oleg”,
“Surname”: “Buckley”
},
{
“FirstName”: “