Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. is there any lose of value ?

is there any lose of value ?

Scheduled Pinned Locked Moved Managed C++/CLI
comquestion
5 Posts 4 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    imran_rafique
    wrote on last edited by
    #1

    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;
    

    r00d0034@yahoo.com

    C I 2 Replies Last reply
    0
    • I imran_rafique

      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;
      

      r00d0034@yahoo.com

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      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

      Smaller Animals Software

      I C 2 Replies Last reply
      0
      • C Chris Losinger

        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

        Smaller Animals Software

        I Offline
        I Offline
        imran_rafique
        wrote on last edited by
        #3

        i chec it but i could not find ? plz u tell r00d0034@yahoo.com

        1 Reply Last reply
        0
        • I imran_rafique

          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;
          

          r00d0034@yahoo.com

          I Offline
          I Offline
          ian mariano
          wrote on last edited by
          #4

          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 a long. 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;]


          http://www.ian-space.com/

          1 Reply Last reply
          0
          • C Chris Losinger

            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

            Smaller Animals Software

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups