问题标签 [c++builder-xe3]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1573 浏览

c++builder - 如何在 C++ Builder XE3 中动态调用表单?

我正在构建一个应用程序,其中我使用 DB 填充菜单。我可以创建菜单项,但我无法将“单击时”事件链接到特定表单。我已经在我的数据库中存储了表单类的名称,并尝试使用 RTTI 在运行时绑定它们。以下是我尝试运行的代码片段。

现在,当我尝试运行以下代码来调用表单时,它会给出“访问冲突”错误。

0 投票
1 回答
981 浏览

c++ - 配置应用程序清单 C++ Builder XE3

我使用 .manifest 文件为我的应用程序添加了管理员权限,因为我需要访问注册表。它现在在我的 .exe 中。在我这样做之前,我的应用程序启用了很好的运行时主题。那个主题是什么困扰我。它看起来像旧版本的 Windows。完全过时了。我知道这是因为我使用了那个 .manifest 文件,但我不知道在 .manifest 文件中添加/更改/删除什么来启用 Windows 主题并保持管理权限。我该怎么办?

这是在我的 .manifest 文件中:

0 投票
1 回答
436 浏览

delphi - Which .OBJ files are linked into which VCL libraries

When linking a C++ project in Embarcadero RAD Studio XE3 (with Use Runtime Packages off), I sometimes get an error of the form :

[ilink32 Error] Fatal: Unable to open file 'FOO.OBJ'

I understand what causes this. It is because there is an implicit reference in the code (usually via a #pragma link) that causes the linker to require the unit FOO.

And if I look in the VCL source, I can usually find a FOO.PAS that gets compiled into a FOO.DCU. That's the compiled unit the linker is looking for but can't find.

I know this compiled unit lives in one of the VCL libraries, but I don't know how to find out which one. For instance, which units do VCL.LIB and RTL.LIB and BCBIE.LIB (and so forth) contain?

Given a unit name I would like to know which VCL library contains it. If I knew that, I could just add the appropriate .lib file to the LinkPackageStatics tag in my cbproj file and everything would link just fine.

It would be nice if it was just shown in the documentation for that unit, but it isn't there. Currently, I have to use trial and error to find the right library, but surely there is a publicly-available listing somewhere that shows which VCL units get linked into which VCL libraries.

Where could I find such a listing?

(By the way, I know that in normal usage of the IDE the developer isn't required to know this. The IDE generally takes care of this for you. But I find that I occasionally need this information when a .cbproj gets merged wrong or manually edited incorrectly or for a host of other reasons that go beyond normal usage of the IDE.)

EDIT: Thanks! tlib was exactly what I needed. I'm pretty lousy at shell scripts, but I wrote a little shell script that outputs the name of the library next to the name of each of the units it contains:

Then I can invoke the script by executing it on all the .libs I'm interested in and then grepping for the unit (like SysUtils) I'm looking for:

0 投票
2 回答
1324 浏览

xml-parsing - 应用程序显示错误 Microsoft MsXml 未安装

我的应用程序使用 C++ builder XE3 制作。在我的应用程序中,我使用 XML.xmldoc.hpp 完成了一些 xml 解析

在 XP 机器上,当我运行应用程序时,它显示消息框“未安装 Microsoft msxml”。

请问谁能帮帮我??

0 投票
3 回答
2073 浏览

ide - “运行”后 C++ Builder 未运行应用程序

我对 C++ Builder XE6 有一个奇怪的问题。实际上,我什至从 XE3 版本就注意到了这个问题。单击“运行”后,我的应用程序编译,但随后出现沙漏,等待一段时间,什么也没有。我的应用程序没有运行。如果我再次按“运行”,我会得到“Project1.exe 已崩溃”之类的信息......

对我来说唯一的解决方案是使用 project/clean 然后再次“运行”。然后是作品。但是,这是浪费时间。有谁知道这是什么以及如何解决它?

0 投票
1 回答
423 浏览

c++ - 如何使用 FireDAC 从 C++ XE3 迁移到 XE7?

我有一个用 C++ Bulder XE3 编写的应用程序,现在我想升级到 XE7。但我使用 FireDAC 与 PostgreSQL 连接,在 XE3 中,该连接称为 ADConnection 并查询 ADQuery,在 XE7 FDConnection 和 FDQuery 中。我要找到一种简单的方法来做到这一点,而无需重写所有内容。谢谢你的时间。

0 投票
1 回答
585 浏览

c++ - 如何在 C++Builder 中运行两个表单

很高兴与您分享一些信息。

打扰一下,有人知道如何同时运行两个表格吗?

我的意思是,我执行一个 FOR 单击 FORM1 上的一个 BUTTON 并将 FOR 的值设置为 FORM2 上的一个 LABEL。

这里 FORM1 中的一些代码:

我只想看看这个:

如果.... Form1->Label1->Caption= 1,Form2->Label1->Caption也必须为 1,依此类推。FORM2 只显示了最后一个结果,即 10,000。

我很感激任何帮助。谢谢 !

0 投票
1 回答
243 浏览

c++ - 在 C++ builder XE3 中管理多个表单

我正在为我的测试应用程序使用 C++ Builder XE3。项目组包含一个DLL(带有表格)和EXE(包含主表格和其他表格)。当我使用 Form->Show() 函数调用 DLL 表单时,DLL 表单不会出现在顶部,而是停留在 Main Form 和其他形式的 EXE 后面。即使是 BringToFront() 方法也不起作用。有什么方式可以使 DLL 形式的行为类似于 EXE 的形式?

提前致谢。

0 投票
0 回答
209 浏览

delphi-xe3 - 如何将编辑器/IDE 设置从早期版本导入 XE7

似乎没有任何机制可以将颜色/制表符间距/代码完成选项等从早期版本的 RAD Studio(在我的情况下为 XE3)导出到当前的 XE7。

不必逐个检查选项以确保它们相同,这真是太好了……

我搜索了“网络”和“帮助”文件,但没有找到与此相关的任何内容。

0 投票
1 回答
283 浏览

c++ - C++ Builder XE3 run & crash BEFORE the main()

I have some troubles with Embarcadero C++ Builder XE3. When I run my program, I have an access violation BEFORE the first instruction in the main...So I can't debug, it's very weird.

I used to have this problem a couple of weeks ago : I was forced to full rebuild the entire projet (even if only a comma was missing...) and the violation didn't occurs anymore. I solved it by ckecking the option "Disable incremental link".

I was very happy, but today, the problem is back, and whatever I do, my application crash before enterring in the main ...

Does anyone have an idea ? It's a big project, so I can't really post an exemple because I don't really know what to show...

Thanks a lot