当前位置: 代码迷 >> Oracle开发 >> rst->getString(1) 当读取的字符串超过15个就出现错误!请救救小弟我
  详细解决方案

rst->getString(1) 当读取的字符串超过15个就出现错误!请救救小弟我

热度:293   发布时间:2016-04-24 07:53:57.0
rst->getString(1) 当读取的字符串超过15个就出现异常!请救救我
我去oracle的论坛上看了下,类似问题的回答如下   :
Make   sure   that   you   check   the   'makefile '   provided   by   oracle   to   setup   Visual   studio   6.0   settings.   For   Visual   studion   7.0   you   may   also   need   to   update   oraocci9.lib/dll.

Your   developer   studion   must   have   the   following   settings   as   provided   in   the   make   file:

:occimake
cl   -GX   -DWIN32COMMON   -I.   -I%ORACLE_HOME%\oci\include   -I.   -D_DLL   -D_MT   %1.cpp   /link   /LIBPATH:%ORACLE_HOME%\oci\lib\msvc   oci.lib   msvcrt.lib   msvcprt.lib   oraocci9.lib   /nod:libc
goto   end

Follow   these   steps:
1.   ADD   the   following   PREPROCESSOR   DIRECTIVES
A)   ->   WIN32COMMON
B)   ->   _DLL
C)   ->   _MT

2.   Add   "/nodefaultlib:libcd "   in   'project   options '   under   the   'Link '   tab.

3.   Make   sure   that   you   have   the   following   libraries   in   in   "Object/library   modules "   under   the   "Link "   tab.

4.   Add   "libcd "   in   "ignore   libraries "   under   the   "Link "   tab;   this   may   also   be   populated   by   the   "/nodefaultlib:libcd "   setting.
Hope   it   helps~

想来这里问问众兄弟,有遇到这种情况吗?

------解决方案--------------------
有源代码吗
------解决方案--------------------
你的语句!
  相关解决方案