CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    PA
    Posts
    38

    May be a dumb question about BSTR.



    Hello Codeguru's

    This might be very dumb question for gurus like you.

    I want to append one BSTR to another but don't find any API for this purpose.

    Right now I wrote my own function for this purpose but I want to know is there any api for this purpose.


    Expecting reply.


    Thanks

    Chetan

  2. #2
    Join Date
    May 1999
    Posts
    3

    Re: May be a dumb question about BSTR.



    easiest way is to use _bstr_t class.


    _bstr_t b = L"some string";

    _bstr_t c = L"some other string";


    _bstr_t a = b +c; // that ought to do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured