Home » RDBMS Server » Server Utilities » Help needed with Oracle C+
Help needed with Oracle C+ [message #74049] Tue, 31 August 2004 06:47
kunal
Messages: 5
Registered: February 2002
Junior Member
Hello,

I am currently working on a replatforming project from HP UX to SUN Solaris 5.9. The Old HP Server has Oracle 8.0.5 while the Sun Server has Oracle version 9.2.0. In the source code which is in C++ I have :

struct define_data
{
ub1 buf [[MAX_ITEM_BUFFER_SIZE]];
float flt_buf;
sword int_buf;
sb2 indp;
ub2 col_retlen;
ub2 col_retcode;
}

static char scratch1[[]];
struct define_data *Sql_Data;

In the code, I am unable to copy the Sql_Data.buf to scratch1.
i am trying to do the following:
strcpy(scratch1, (char *) Sql_Data.buf);
but no value is copied to scratch1 unlike on HP server where it gets copied.
Is there any way to do it. Is it because of the data type ub1? Please help.

Thanks
Previous Topic: help
Next Topic: import problem urgent
Goto Forum:
  


Current Time: Wed Jul 03 07:53:52 CDT 2024