LB Booster
« Windows constants »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:53am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Windows constants  (Read 715 times)
Phineas Freak
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 18
xx Windows constants
« Thread started 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?
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Windows constants
« Reply #1 on: Jun 17th, 2013, 8:24pm »

on Jun 17th, 2013, 5:30pm, PreciseTiming wrote:
Aren't all Windows constants available in LBB?

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.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Windows constants
« Reply #2 on: Jun 17th, 2013, 9:46pm »

on Jun 17th, 2013, 8:24pm, Richard Russell wrote:
I suspect that in fact LBB supports more constants than LB4.04 does

Here are just a few of the relatively common Windows constants that LBB knows about but LB4.04 doesn't:

Code:
print _AUX_MAPPER
print _AW_BLEND 'etc.
print _BOLD_FONTTYPE
print _BTNS_AUTOSIZE 'etc.
print _CBEM_DELETEITEM 'etc.
print _CC_ANYCOLOR
print _CCS_BOTTOM 'etc.
print _CF_NOFACESEL
print _CMB_MASKED
print _DC_BRUSH 

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.
User IP Logged

Phineas Freak
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 18
xx Re: Windows constants
« Reply #3 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! wink

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.

LBB is really amazing!!! Thumbs up!
« Last Edit: Jun 18th, 2013, 09:38am by Phineas Freak » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls