Link to home
Start Free TrialLog in
Avatar of stevenc317
stevenc317

asked on

DWORD Reg Key??

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
Avatar of q2guo
q2guo

What you mean?  Doesn't
DWORD myword = 0;
work?
Avatar of stevenc317

ASKER

what do u mean???
I meant, did you try

DWORD myword1 = 0;
DWORD myword2 = 1;
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
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);
thanks it works.  now please send a answer thing so I can give u your points.
ASKER CERTIFIED SOLUTION
Avatar of q2guo
q2guo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks