TCustomDataSet C++ 建设者

发布于 2024-07-06 10:23:08 字数 510 浏览 9 评论 0原文

除了作为 C++ Builder 中的示例项目提供的 TTextDataset 示例之外,我正在寻找 C++ 中的 TCustomDataSet 实现示例。

TTextDataset 很难学习,因为代码没有很好地记录,并且只显示了单个字段示例。

我已经创建了自己的 TDataSet 派生类,它大部分都可以工作,但是,GUI 控件(主要是网格)对于某些用例来说不能 100% 工作。

任何人都有关于这个主题的一些很好的链接...

这是我用来学习的示例代码的链接: http://195.19.138.139:3000/ p/SOFTWARE/temp/CBuilder5/Examples/DBTasks/TextData/textdataset.cpp

I'm looking for an example of a TCustomDataSet implementation in C++ beyond the TTextDataset example that ships as an example project within C++ Builder.

The TTextDataset is hard to learn from because the code is not documented very well and it only shows a single field example.

I've created my own class that descends TDataSet and it mostly works however, the GUI controls (grids mostly) don't work 100% for certain use cases.

Anyone have some good links on this topic...

Here is a link to the example code I used to study from:
http://195.19.138.139:3000/p/SOFTWARE/temp/CBuilder5/Examples/DBTasks/TextData/textdataset.cpp

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤千羽 2024-07-13 10:23:08

我有几个例子。 但不幸的是他们在德尔福,但你应该明白:
示例 1
示例 2

第二个有更多解释,是我使用的一个基于绑定到 UI 的自定义数据集(在 delphi 中)。

I have a couple of examples. but unfortunately they are in Delphi, but you should get the idea:
Example 1
Example 2

The second one goes into a bit more explanation and is one I used to base a custom dataset on that did binding to UI (In delphi).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文