Re: need help [off topic]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: need help [off topic]

erik-44
On Fri Dec 17  8:38 , Adjriou Belak <[hidden email]> sent:

>Hi guys,

>Does somebody implement a way to convert XlfOper in String vector. There is no method with the name AsStringVector() ?

>Regards.
>Thanks for your help.
>
>
>
>Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
>Créez votre Yahoo! Mail


Hello

Do you want to convert a single XlfOper value to a single std::string?  If so the code is below.  If you want to take an XlfOper
representing a cell range, and convert that to a std::vector<std::string>, that's different, let me know.

Rgds
Eric

  LPXLOPER EXCEL_EXPORT xlStrTest(XlfOper xlStrIn)
  {
    EXCEL_BEGIN;

    char *charPtr = xlStrIn.AsString();
    std::string s(charPtr);
    s = s + "foo";
    return XlfOper(s.c_str());

    EXCEL_END;
  }