?
Solved

DWORD Reg Key??

Posted on 1998-03-06
8
Medium Priority
?
392 Views
Last Modified: 2008-03-10
I am using Borland C++ Builder v1.0 how do I create a DWORD with the value of 0 (0x00000000 (0) that is).  Also how do I create one with the value of 1 (0x00000001 (1) that is)

thanks
0
Comment
Question by:stevenc317
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 3

Expert Comment

by:q2guo
ID: 1183138
What you mean?  Doesn't
DWORD myword = 0;
work?
0
 
LVL 1

Author Comment

by:stevenc317
ID: 1183139
what do u mean???
0
 
LVL 3

Expert Comment

by:q2guo
ID: 1183140
I meant, did you try

DWORD myword1 = 0;
DWORD myword2 = 1;
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:stevenc317
ID: 1183141
I do not understand.  I just need to create a reg key HKEY_CURRENT_USER\Software\High Voltage\High Security\ keyname  and have that key a DWORD with the value of 1and one that has the same path as above but with the value of 0
0
 
LVL 3

Expert Comment

by:q2guo
ID: 1183142
You know how to create a reg key with string values, right?
So, instead of doing
myreg->WriteString(string, string);
call
myreg->WriteInteger(String, 0);
myreg->WriteInteger(String, 1);
0
 
LVL 1

Author Comment

by:stevenc317
ID: 1183143
thanks it works.  now please send a answer thing so I can give u your points.
0
 
LVL 3

Accepted Solution

by:
q2guo earned 0 total points
ID: 1183144
myreg->WriteInteger(String, 0);
myreg->WriteInteger(String, 1);
0
 
LVL 1

Author Comment

by:stevenc317
ID: 1183145
thanks
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

718 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