How to set high bits?

From: [at]} <Wojtek>
Date: Tue, 4 Jun 2002 11:55:42 -0400 (EDT)

----boundary-LibPST-iamunique-181220705_-_-
Content-type: text/plain

Hi:

  I am developing a Windows API module and I am getting into the following
problem. The declaration below (taken from Visual Basic) sets the highest
bit of the 32-bit word. This works in VB. How can I translate this to
Component Pascal?

Public Const GENERIC_READ = &H80000000

None of the following compiles under BlackBox

CONST
GENERIC_READ* = 080000000X; (* number too large*)
GENERIC_READ* = SYSTEM.VAL(INTEGER,{31}); (*expression should be constant*)
GENERIC_READ* = {31}(INTEGER); (* ";" missing *)

How can I declare such a constant?

Thank you,

Wojtek Skulski skulski{([at]})nowhere.xy

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-181220705_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFi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WQgdG8gYXZvaWQgc3BhbS4gUGxlYXNlIHVuZGVyc3RhbmQgdGhhdCBtb2RlcmF0aW9uIHdpbGwg
b2Z0ZW4gY2F1c2Ugc29tZSBkZWxheSwgaW4gcGFydGljdWxhciBvdmVyIHdlZWtlbmRzIG9yIGhv
bHlkYXl9fQAgdmFsaWQgZS1tYWk=


----boundary-LibPST-iamunique-181220705_-_---
Received on Tue Jun 04 2002 - 17:55:42 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:44 UTC