Solved

TRegistry.WriteBinaryData - Example

Posted on 1998-10-27
3
626 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…

860 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