1
vote
Vote UpVote

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

The Wiert Corner – 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 by David Heffernan commenting on [WayBack] I have this code sample on StackOverflow using a function WideCharToWideString… I can’t seem to find anything on this function… – ...
Favorite? Off-Topic? jpluimers @ 2020-03-03 12:04

Statistics

Visits: 116
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Michał Rajewicz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)