Re: Control Left property

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Max (Please.Answer_at_news.group)
Date: 03/03/04


Date: Wed, 3 Mar 2004 10:50:17 +0200

One of the System.Drawing.Point constructors is
public Point(
   int dw
)
where
  dw
  A 32-bit integer that specifies the coordinates for the new Point.
Remarks
The low-order 16 bits of dw specify the horizontal x-coordinate and the
higher 16 bits specify the vertical y-coordinate for the new Point.

(quoted from the documentation).

Thus, point might be stored as a single integer, not as a pair of integers.

It is just a version. I do not have source codes and do not know exactly how
is it implemented.

"SteveB" <anonymous@discussions.microsoft.com> wrote in message
news:2E0478CC-41BA-44C7-9144-385A7D6A2549@microsoft.com...
> hi:
> the Left property is an Int type (supposed to be 32 bit ), yet for some
reason it's acting as an 16 bit integer, i.e., i cannot assign a number
larger than 32767.
> is this caused by some compile/link option that i am unaware of?



Relevant Pages

  • Ref: Toni Erdmann - GCC difference in size of long
    ... It seems unfair to me that the response Must go to the group you have ... order to compile it. ... error signal caused by a single misplaced int is particularly hard to find. ... You can also specify the architecture of the target. ...
    (alt.os.linux.suse)
  • Re: Wheres the mistake???
    ... Implicit int ... always a good idea to specify the return type of all functions anyhow. ... As I hope you are aware, a prototype is a function ... Dig the even newer still, yet more improved, sig! ...
    (comp.lang.c)
  • [PATCH] IP1000A: IC Plus update 2006-08-22
    ... int fiber; ... /* Record frame transmit start time (jiffies = Linux ... -/* Specify the number of receive frames transferred via DMA ...
    (Linux-Kernel)
  • [PATCH] IP1000A: IC Plus update
    ... int fiber; ... /* Record frame transmit start time (jiffies = Linux ... -/* Specify the number of receive frames transferred via DMA ...
    (Linux-Kernel)
  • Re: K&R2 ex 1-8
    ... Which you should specify in the body, ... > int c,n1,n2,n3; ... complain about unused parameters. ... The formatting is purely a matter of style. ...
    (comp.lang.c)