0

我正在做一个 c++ 项目,我想知道是否可以在不使用数据库的情况下添加数据网格的项目。使用 xxxxxx.dat 文件。那可能吗?

pd:对不起,我的英语不好,我不会说英语。

4

1 回答 1

0

Create a couple of classes. One to describe a row in the file. One to open up a list of the above. add a method to load from the dat file, (and save to it?) Then just bind your grid to the list class.

Another possible option would be ODBC Text driver, but there area good few ifs and buts around that.

于 2012-06-13T17:33:58.087 回答