CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Location
    LoS AnGeLeS
    Posts
    251

    get_text problem

    Take a look at this code, where p_list is a nodelist

    BSTR Ext_Data_Tag;
    p_list->get_item(0, &_It);
    _It->get_text(&Ext_Data_Tag);
    ofstream ab_("ab.txt");
    ab_ << (char*)Ext_Data_Tag<< endl;
    ab_.close();

    When I take a look at ab.txt, only the first letter of the data shows up in the file, not all of it. Does anybody know what the problem is??

  2. #2
    Join Date
    Jun 2001
    Location
    LoS AnGeLeS
    Posts
    251

    never mind

    never mind. solved the problem using ->firstchild->text

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