Solved

DWORD Reg Key??

Posted on 1998-03-06
8
390 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
Technology Partners: 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!

 
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
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

627 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