Category: Uncategorized

  • How can I use inline ASM in Delphi

    In Delphi, you can use inline assembly code in your programs using the asm keyword. Inline assembly allows you to include low-level machine code instructions in your Delphi code, which can be useful for optimizing certain operations or for accessing hardware resources that are not directly exposed by the Delphi language. Here is an example…

  • How can I convert TColor to html-color in Delphi

    Here is a function that you can use to convert a TColor value to a string representation of the corresponding HTML color code in Delphi: function TColorToHTMLColor(Color: TColor): string; begin Result := ‘#’ + IntToHex(Color and $00FFFFFF, 6); end; This function works by first masking off the high byte of the TColor value, which contains…