Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.665 Beiträge
 
#1

Use SetString if your source memory reagion with characters is not null-terminated…

  Alt 3. Mär 2020, 12:10
Too many people forget this (including myself) every now and then) so here is a reminder to use the [WayBack]*SetString*method when assigning strings from memory regions having characters but no null terminator: Anyway, assuming that you use a Unicode Delphi you want to use SetString in its place: SetString(password, PWideChar(Credential.CredentialBlob), Credential.CredentialBlobSize div 2); It was […]

Weiterlesen...
  Mit Zitat antworten Zitat