Solved

DWORD Reg Key??

Posted on 1998-03-06
8
382 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
Comment Utility
What you mean?  Doesn't
DWORD myword = 0;
work?
0
 
LVL 1

Author Comment

by:stevenc317
Comment Utility
what do u mean???
0
 
LVL 3

Expert Comment

by:q2guo
Comment Utility
I meant, did you try

DWORD myword1 = 0;
DWORD myword2 = 1;
0
 
LVL 1

Author Comment

by:stevenc317
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 3

Expert Comment

by:q2guo
Comment Utility
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
Comment Utility
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
Comment Utility
myreg->WriteInteger(String, 0);
myreg->WriteInteger(String, 1);
0
 
LVL 1

Author Comment

by:stevenc317
Comment Utility
thanks
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

744 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

12 Experts available now in Live!

Get 1:1 Help Now