每次我打开 Delphi 并尝试在欢迎页面上加载 GetIt Packages 时,都会收到错误,并且无法加载,如下图所示:

单击“重试”不起作用。同样的问题。
它给我的警告/错误是:
无法加载 URL https://getit-12.embarcadero.com。发生以下错误:模块“rtl290.bpl”中地址 7A0E2732 处发生访问冲突。写入地址77C9BC5C
这种情况每次都会发生。这是 Delphi 12 中的错误还是我的安装没有正确完成?我该如何修复 GetIt 和此警告/错误?
在某些编程语言中,可以将函数标记为已弃用或已过时,然后不能使用或应谨慎使用。有时它甚至会在某处产生警告消息。
Delphi 编程语言中是否可以将过程标记为已弃用?如果可能的话,它是如何运作的?
I'm trying to have a TComboBox with images instead of text. Is this possible? If yes, then how? I've looked over all of the properties a dozen times and I can't find anything. Also, I'm very new to Delphi. So maybe this is obvious, but I couldn't find a place to add images into a ComboBox instead of text. How can I add images to my ComboBox?
我尝试在网上寻求帮助,但没有什么真正有帮助,也没有什么对我来说足够容易理解的。
Delphi 12 引入了多行字符串,我试图弄清楚它是如何工作的,来自 JavaScript 背景。在那里我可以直接在多行字符串中包含变量,例如:
const myName = 'Martin';
const myString = `Hi ${myName},
Say hello to
multi-line
strings!`;
Run Code Online (Sandbox Code Playgroud)
这将替换${myName}为变量的内容。在 Delphi 中如何使用新的'''多行字符串来实现这一点?
delphi string-interpolation multilinestring delphi-12-athens
新版本的 Delphi 有System.Hash,但旧版本如 Delphi 7 没有。
Delphi 哪个版本引入了该System.Hash单元?
在 FireMonkey (FMX) 中,每个TControl组件都有一个HitTest属性,允许我启用或禁用组件上的鼠标事件。
VCL中有类似的东西吗?我试着寻找它,但我HitTest在任何地方都找不到房产。
如果没有HitTestVCL,如何实现同样的效果呢?有人可以提供一个关于如何在 VCL 中执行此操作的代码示例吗?
我正在使用 Embarcadero Delphi 12。
我正在尝试使用该类TRegistry读取 Windows 中的注册表值。
有人给我发送了一个如何使用它的示例,但代码不起作用。
uses Windows, Registry;
...
procedure TForm1.Button1Click(Sender: TObject);
var
Registry: TRegistry;
ProductName: string;
begin
Registry := TRegistry.Create(KEY_READ); // or KEY_WRITE if you want to modify the value
try
Registry.RootKey := HKEY_LOCAL_MACHINE;
ProductName := Registry.GetValue('SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'ProductName', '');
ShowMessage('The product name is: ' + ProductName);
finally
Registry.Free;
end;
end;
Run Code Online (Sandbox Code Playgroud)
这不是找GetValue。所以也许这不是TRegistry工作方式,或者它的工作方式在新版本的 Delphi 中已经改变了。我不确定,而且 Embarcadero docwiki 已关闭,所以我也无法在那里检查。
怎样TRegistry运作?如何使用它从注册表中读取值?
delphi ×7
vcl ×2
deprecated ×1
firemonkey ×1
hittest ×1
mouseevent ×1
obsolete ×1
procedure ×1
rad-studio ×1
registry ×1