继承CRecordset类建立一个新类,系统会自动邦定数据源,自动生成变量邦定表中的列

解决方案 »

  1.   

    我要把它做成dll文件,所以这样不行
      

  2.   

    你从 CRecordset 或者CDaoRecordset 中派生一个类,然后他就可以自动的同数据库中的字段进行绑定
      

  3.   

    CRecordset不提供动态绑定,只能使静态的
      

  4.   

    同意楼上的,
    看不出dll跟你的问题有什么关系;
      

  5.   

    __int8 nSmall;      // Declares 8-bit integer0D
    __int16 nMedium;    // Declares 16-bit integer
    __int32 nLarge;     // Declares 32-bit integer
    __int64 nHuge;      // Declares 64-bit integervoid MyFunc( __int64) {}
    void MyFunc( char ) {}void main()
    {
        __int64 newVal;
        char MyChar;
        MyFunc( MyChar );    // Ambiguous function calls;
        MyFunc( newVal );    // char is synonymous with __int8.0D
    }