occi带debug的但是要注意 // !! IMPORTANT NOTE ON WIN32 PLATFORMS !! // Please note Oracle TAR 2630255: // "In this bug the application is linked with (multi-threaded " // "debug C run-time library) MSVCRTD.DLL however, oraocci9.dll " // is linked with (multi-threaded non-debug C run-time library) MSVCRT.DLL. // // The bottom line to fix this if you experience heap assertion errors - // add msvcprt.lib to your list of link libraries. // In debug builds (e.g. /MDd), a link to msvcprtd.lib occurs, which appears // to be the root of the problem. // Oracle had about 4-5 tickets opened about this, and it doesn't appear it's // been fixed outside this workaround.
先去网上down下occi包。oracle安装路径下也能找到所需的dll文件,但是不带debug的。
然后……就照着网上的资料配吧,稀里糊涂就好了,然后就能用了>_<。
// !! IMPORTANT NOTE ON WIN32 PLATFORMS !!
// Please note Oracle TAR 2630255:
// "In this bug the application is linked with (multi-threaded "
// "debug C run-time library) MSVCRTD.DLL however, oraocci9.dll "
// is linked with (multi-threaded non-debug C run-time library) MSVCRT.DLL.
//
// The bottom line to fix this if you experience heap assertion errors -
// add msvcprt.lib to your list of link libraries.
// In debug builds (e.g. /MDd), a link to msvcprtd.lib occurs, which appears
// to be the root of the problem.
// Oracle had about 4-5 tickets opened about this, and it doesn't appear it's
// been fixed outside this workaround.