联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 DateTime with ODBC - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为18996
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • jasperreports
  • Air Traffic Controller
  • PoolMan
  • virtualdub-win
  • Apache-SSL-Jserv
  • CppUnit
  • FCK editor
  • GLgraph
  • Async Professional
  • -= 更多 =-

    项目描述:
    Here is my solution for a (little) problem using ODBC and date & time (for VC++ 4.0 & 5.0).

    If using ODBC & date/time fields in a typical CRecordView, ClassWizard automatically binds a CTime object to the specific recordset. This object has few limits, but the most important is: there is no way to attach an Edit control in a CRecordView to that field.

    With this code, it is possible to bind a date/time field to an Edit control using all MFC utilities, just like string parsing, data validation, data automatic set/get and so on.


    DateTime with ODBC

    这里是我使用ODBC和Datetime的一 (一点点)个问题的解决方法(为 VC++4.0和5.0)。

    如果在典型的CRecordView中使用ODBC和Datetime,ClassWizard会自动地对特定的recordset绑定一个CTime对象。这个对象没有多少限制,但最重要的是: 没有方法将CRecordView中的Edit控件绑定到那个域中。
    这段代码,使我们使用所有的MFC公用程序来绑定Datetime到Edit控件成为可能,就像字符串分析,数据核实,数据自动存取等等一样。

    来源: http://www.codeguru.com/mfc_database/DateTimeWithODBC.shtml
    类别:
    发布者: cbd002

    最新发布源码包
    软件包 版本号 日期 本地下载
    DateTimeWithODBC  1.0  2004-04-18 下载

    原始下载连接(国外) http://www.codeguru.com/code/legacy/mfc_database/DateTimeWithODBC_source.zip

      » 合 作 伙 伴