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. Visual Basic
  4. intptr in vb.net

intptr in vb.net

Scheduled Pinned Locked Moved Visual Basic
csharp
5 Posts 4 Posters 0 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.
  • A Offline
    A Offline
    amaneet
    wrote on last edited by
    #1

    Sir/Madam, I wanted to know the difference between integer and int32 .Basically in which situations we should use integer and in which situations we should use int32. Thanks and regards Pankaj Garg

    C D M 3 Replies Last reply
    0
    • A amaneet

      Sir/Madam, I wanted to know the difference between integer and int32 .Basically in which situations we should use integer and in which situations we should use int32. Thanks and regards Pankaj Garg

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

      Please don't ask twice. Your question has nothing to do with intptr. There are no situations I can think of where I'd use one over the other, in fact, I use int all the time, I'm not sure they are different ( unless int is not 32 bit, but I assume it is )

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      A 1 Reply Last reply
      0
      • C Christian Graus

        Please don't ask twice. Your question has nothing to do with intptr. There are no situations I can think of where I'd use one over the other, in fact, I use int all the time, I'm not sure they are different ( unless int is not 32 bit, but I assume it is )

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        A Offline
        A Offline
        amaneet
        wrote on last edited by
        #3

        Sir/Madam, I am sorry .Actually by mistake the title of the problem is written wrong.Next time i will take care of it. Thanks and Regards Pankaj

        1 Reply Last reply
        0
        • A amaneet

          Sir/Madam, I wanted to know the difference between integer and int32 .Basically in which situations we should use integer and in which situations we should use int32. Thanks and regards Pankaj Garg

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          There is no difference between Integer and Int32. Integer is the VB.Net alias for a System.Int32, a 32-bit signed integer.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          1 Reply Last reply
          0
          • A amaneet

            Sir/Madam, I wanted to know the difference between integer and int32 .Basically in which situations we should use integer and in which situations we should use int32. Thanks and regards Pankaj Garg

            M Offline
            M Offline
            Martin Smith
            wrote on last edited by
            #5

            It is best to only use types such as int32, int16 etc. when you need to guarentee a certain number of bits are used to store a value (whether that be numerical, bit flags, or just encoded data of a proprietory type). If you generally dont care how many bits it takes to store the value use a basic type, such as integer, long etc. The general purpose, from my point of view, for types such as int32 is to ensure portability of code across several platforms (as I mention above e.g. -- if you are using the bits in a variable to flag information you may need to ensure you have a minimum of 32 bits -- using a basic type like integer does not mean you will necessarily have a 32bit variable, although in the case of .Net this is actually true). Regards, Martin

            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