I need to call some C code from Delphi. The C code needs to be able to call back into the Delphi code. The example Calling a callback function in Delphi from a C++ DLL shown here is very effective.
Category: Delphi
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.
Delphi – “Blank” in the Detection list box
I have a tall list box with a variable number of items. It is not always full. I know that when the user does not select items through this code:
if (lstbox.ItemIndex = -1) then
ShowMessage(
Delphi checks if Double is an integer
I need to test whether double is an integer. Basically this is an example of the rule:
> 5.0>true
> 5.2>false< /p> In order to do this, I do an if (result mod 1) = 0 and see if it returns tru
Delphi – How to capture TTHREAD that suddenly destroyed
My Environment: Rad Studio XE4 using C++ I am using TThread to develop a software. Recently, I encountered a problem, namely Days later, TThread was suddenly destroyed.
In TThread, the thread
Delphi – Compiler Options for Using Debug DCUs?
In the component I am writing, I want to include automatic detection of registered image formats, but it is a solution that works only when the compiler option of Use Debug DCU is disabled.
W
Inno-setup – Add a registry key using functions in Innosetup
How to use the value in the function to add a registry key in innosetup. I want to set
the IsServer value in the registry as the return value of InstallAsServer
[Code]
[Registry]
Root: HKLM;
How to disable the Android homepage and back button from Delphi
I am writing an application for an Android tablet in Delphi XE7. I want to turn off the homepage and back button so that no one can leave the application. I found many answers, But there is no ment
How to compile and run this Delphi code without installing IDE?
It is said that a winform is generated:
var
F: TForm;
L: TLabel;
begin
F := TForm.Create(Application);
L := TLabel.Create(F);
L.Parent := F; // Needed to have it show up on the form.
L
Delphi – lists the index beyond the range when deleting items
I solved my problem, but I need to know why this problem occurs?
I wrote a project to load the file into the listBox and then delete the strings one by one,
But when I delete the listBo
Delphi – How to use the overload operator to assign empty set to record
I am using records to encapsulate two exception sets.
I have put in operators to allow either group to be assigned to records. Doing so will clear the other. < br>But I cannot specify an empty set