Solved

TRegistry.WriteBinaryData - Example

Posted on 1998-10-27
3
627 Views
Last Modified: 2010-05-18
I need to write to a registry entry in the form 00 00 00 00.
I believe this needs to be wriiten using TRegistry.WriteBinaryData. Could anyone post an example of using this procedure.  Thank you.
0
Comment
Question by:yvesmail
3 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 50 total points
ID: 1344678
To write a double to the registry as binary data do this:

var
  MyDouble : double

MyRegistry.WriteBinaryData('MyKey', Mydouble, Sizeof(Mydouble));

Cheers,

Raymond.
0
 
LVL 3

Expert Comment

by:philipleighs
ID: 1344679
Do you mean a DWORD?
0
 

Author Comment

by:yvesmail
ID: 1344680
Thank you rwilson. It works great.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Printing problem 2 110
Convert GUI app into console app for Win32 Env 5 125
Convert a string into a TDateTime 5 72
Delphi Firemonkey send email on Android 1 38
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question