CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Join Date
    Feb 2003
    Location
    Bilbao
    Posts
    513
    That´s why I wouldn´t recommend to use the data inside an string that way.

    Yes, avi, the second method (with the corrections suggested) is much better.
    Caronte
    Si tiene solución... ¿por qué te preocupas?
    Si no tiene solución... ¿por qué te preocupas?

  2. #17
    Join Date
    Dec 2002
    Posts
    47
    Hi avi;

    If you already have STL string available then just create a second string - or vector as Paul suggests. Let STL take core of deleting the string for you instead of calling new[]/delete[].

    Wondering: how does CryptEncrypt know the length of the string?

    -rick

Page 2 of 2 FirstFirst 12

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