Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Use SetString if your source memory reagion with characters is not null-terminated… (https://www.delphipraxis.net/203591-use-setstring-if-your-source-memory-reagion-characters-not-null-terminated%85.html)

DP News-Robot 3. Mär 2020 12:10

Use SetString if your source memory reagion with characters is not null-terminated…
 
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...


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:59 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz