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. A question about "size_t"

A question about "size_t"

Scheduled Pinned Locked Moved Managed C++/CLI
questionhelp
5 Posts 2 Posters 2 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.
  • G Offline
    G Offline
    George Ma
    wrote on last edited by
    #1

    Hi, everyone! I have searched the help page for "size_t" but failed to find the help page and information about "size_t". Where can I find the help page or information about "size_t"? Can you paste detailed information about "size_t". Thanks. Cheers, George

    N 1 Reply Last reply
    0
    • G George Ma

      Hi, everyone! I have searched the help page for "size_t" but failed to find the help page and information about "size_t". Where can I find the help page or information about "size_t"? Can you paste detailed information about "size_t". Thanks. Cheers, George

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      #ifndef _SIZE_T_DEFINED
      #ifdef _WIN64
      typedef unsigned __int64 size_t;
      #else
      typedef _W64 unsigned int size_t;
      #endif
      #define _SIZE_T_DEFINED
      #endif

      Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      G 1 Reply Last reply
      0
      • N Nish Nishant

        #ifndef _SIZE_T_DEFINED
        #ifdef _WIN64
        typedef unsigned __int64 size_t;
        #else
        typedef _W64 unsigned int size_t;
        #endif
        #define _SIZE_T_DEFINED
        #endif

        Nish


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        G Offline
        G Offline
        George Ma
        wrote on last edited by
        #3

        Thanks, Nish, my old friend! I still have a question. What means "typedef _W64 unsigned int size_t;"? Does it mean the three objects _W64, unsigned int and size_t are the same? Have a nice weekend, George

        N 1 Reply Last reply
        0
        • G George Ma

          Thanks, Nish, my old friend! I still have a question. What means "typedef _W64 unsigned int size_t;"? Does it mean the three objects _W64, unsigned int and size_t are the same? Have a nice weekend, George

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          Hello George It means size_t is a synonym for _W64 unsigned int And as far as I could make out _W64 has been defined as nothing. Perhaps someone else can correct me here if I am wrong. So as far as you are concerned you can cast the size_t to an unsigned int Regards, Nish p.s. I found the cross posts humorous, specially your choice of the ATL/WTL forum ;-) ;-) ;-)


          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

          G 1 Reply Last reply
          0
          • N Nish Nishant

            Hello George It means size_t is a synonym for _W64 unsigned int And as far as I could make out _W64 has been defined as nothing. Perhaps someone else can correct me here if I am wrong. So as far as you are concerned you can cast the size_t to an unsigned int Regards, Nish p.s. I found the cross posts humorous, specially your choice of the ATL/WTL forum ;-) ;-) ;-)


            Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

            G Offline
            G Offline
            George Ma
            wrote on last edited by
            #5

            Thanks, Nisk pal! I think I have fully understood the meaning of size_t under your directions and other pals in ATL/WTL forum. :-) :-) :-) Have a nice weekend, George

            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