Solved

DWORD Reg Key??

Posted on 1998-03-06
8
383 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 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.

919 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now