Menu

Dynamic allocation for two dimensi array

2010-12-05
2012-09-26
  • Nobody/Anonymous

    Hi,
    Original method:
    wchar_t tab_str;

    if(!OCI_BindArrayOfStrings(st, MT(":o_V2"), (wchar_t*) tab_str, 30, 1000))

    Try using
    wchar_t *tab_str = new wchar_t
    for (int i = 0; i < maxsize; i++) {
    //tab_str_ = new wchar_t;
    tab_str_ = '\0';
    }
    but the data is not return.
    How to do this ?
    Please help

    Regards
    Alvin

    __

     
  • Vincent Rogier

    Vincent Rogier - 2010-12-06

    Hi,

    for string arrays, OCI only supports contiginous arrays of buffer like array;
    it's not my choice...but oracle one.