Sign in to follow this  
Followers 0
sho2kan

[Q] About PWideChar parameter in delphi with AU3_RegRead

1 post in this topic

I have a question about PWideChar parameter in delphi with AU3_RegRead.

but i'm sorry i'm a delphi newbie. :-)

ex)

var

str: String;

begin

SetLength(str, 256);

AU3_RegRead('HKEY_CURRENT_USER\KEYNAME', 'VALUENAME', PWideChar(str), 256);

ShowMessage(str);

end;

it wokrs. is it a right usage?

if SetLength command wasn't, it didn't work.

so why do AU3_RegRead command need buffer parameter?

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0