is there any lose of value ?
-
can i type caste WPARAM and LPARAM into Int32 or not. is there any lose of values;Int32 wp=(Int32)wParam; Int32 lp=(Int32)lParam; is there any lose of value if i get wParam,lParam like that?
WPARAM wParam=(WPARAM)wp; LPARAM lParam=(LPARAM)lp;
-
can i type caste WPARAM and LPARAM into Int32 or not. is there any lose of values;Int32 wp=(Int32)wParam; Int32 lp=(Int32)lParam; is there any lose of value if i get wParam,lParam like that?
WPARAM wParam=(WPARAM)wp; LPARAM lParam=(LPARAM)lp;
try it. find out.
"[it was..] one of those evenings when you feel that not only will there definitely be a revolution, but that the Association of Manufacturers will foot the bill." -- Umberto Eco, Foucault's Pendulum
-
try it. find out.
"[it was..] one of those evenings when you feel that not only will there definitely be a revolution, but that the Association of Manufacturers will foot the bill." -- Umberto Eco, Foucault's Pendulum
i chec it but i could not find ? plz u tell r00d0034@yahoo.com
-
can i type caste WPARAM and LPARAM into Int32 or not. is there any lose of values;Int32 wp=(Int32)wParam; Int32 lp=(Int32)lParam; is there any lose of value if i get wParam,lParam like that?
WPARAM wParam=(WPARAM)wp; LPARAM lParam=(LPARAM)lp;
If you look deep in the bowels of the Platform SDK, you'll see the definition of LPARAM and WPARAM. You'll see that WPARAM is an
unsigned integer
, while LPARAM is along
. Int32 can handle them because as the .NET C++ reference states: "The size of a signed or unsigned int item is the standard size of an integer on a particular machine. For example, in 16-bit operating systems, the int type is usually 16 bits, or 2 bytes. In 32-bit operating systems, the int type is usually 32 bits, or 4 bytes. Thus, the int type is equivalent to either the short int or the long int type, and the unsigned int type is equivalent to either the unsigned short or the unsigned long type, depending on the target environment." I would take that to mean since .NET isn't 16-bit, that you're pretty safe;]
-
try it. find out.
"[it was..] one of those evenings when you feel that not only will there definitely be a revolution, but that the Association of Manufacturers will foot the bill." -- Umberto Eco, Foucault's Pendulum
Don't be so stupid. :-) I really worry when someone is here for so long and continues to post the most basic questions over and over. Are we failing him by answering ? Would he learn if he had to ? Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002