我用SQL2005和C++6.0 开发数据库。最后编译全部通过了 就是链接的时候 有个错误 错误代码如下。
希望各位帮帮忙看看 :StatDlg.obj : error LNK2001: unresolved external symbol "class CTime __cdecl StrToTime(class CString)" (?StrToTime@@YA?AVCTime@@VCString@@@Z)各位帮忙看看 谢谢了!!

解决方案 »

  1.   

    class CTime __cdecl StrToTime(class CString)
    这个是你写的话,查看下
      

  2.   

    看看是不是你时间转换成CString时有问题莫得?
    PS:向数据库中写入时间时,不能直接将VC中定义的时间,而用其Format格式化为CString,然后再写入
      

  3.   

    看看这个
    http://topic.csdn.net/u/20101214/20/b4d2bd0e-57a9-4a34-adbc-8ae05e72fca6.html?87867
      

  4.   

    不好意思
    http://beauty.hit.edu.cn/myStudy/folder.2007-02-10.3253989707/error-lnk2001-unresolved-external-symbol-vc-lianjiecuowuxiangjie