Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DWORD Reg Key??

Posted on 1998-03-06
8
Medium Priority
?
393 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
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

885 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