LB Booster
Programming >> Compatibility with LB4 >> Windows constants http://lbb.conforums.com/index.cgi?board=compatibility&action=display&num=1371490215 Windows constants
Post by Phineas Freak on Jun 17th, 2013, 5:30pm
While compiling a program that uses some registry functions, i got an error with a reference to the _REG_SZ value. Under LB it is a recognized constant but LBB doesn't recognize it.
Aren't all Windows constants available in LBB?
Re: Windows constants
Post by Richard Russell on Jun 17th, 2013, 8:24pm
Obviously not all Windows Constants are available (in either LBB or LB) since there are far too many of them, and the number is increasing almost daily!
Both LB and LBB support only the most common constants, but since (as far as I know) the list of those known to LB isn't published anywhere they certainly won't be identical subsets.
I suspect that in fact LBB supports more constants than LB4.04 does, but I will have to investigate why REG_SZ isn't one of them. I will make sure it is added at the next release.
Richard.
Re: Windows constants
Post by Richard Russell on Jun 17th, 2013, 9:46pm
There are dozens of them in all, but of course that's no consolation for the omission of the REG_ constants for which I apologise.
Richard.
Re: Windows constants
Post by Phineas Freak on Jun 18th, 2013, 04:37am
Well, i know that not all Windows constants are available (have spent a lot of time in the past trying to identify what value a constant has). Registry is not used by a lot of LB programs and so i fully understand if LBB had not included the REG constants.
It is very good to see that LBB understands more than LB. Keep up the awesome work!
EDIT: Changed the _REG_SZ to 1 (the value that the constant has) and <insert drums here> it worked! Perfectly! And it is not a simple program, it is a mammoth of 7700+ lines of code that covers almost every coding aspect of LB.