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. C#
  4. how to got the programming is compiled by x64 or x86

how to got the programming is compiled by x64 or x86

Scheduled Pinned Locked Moved C#
5 Posts 3 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.
  • D Offline
    D Offline
    Dracula Wang
    wrote on last edited by
    #1

    i am writing some code, if will act different ways on x64 and x86, does there is a way to justify the code is compiled by x64 or x86, as i know i cpp i can use

    #ifdef __x64
    doA
    #elif __x86
    doB
    #endif

    D L 2 Replies Last reply
    0
    • D Dracula Wang

      i am writing some code, if will act different ways on x64 and x86, does there is a way to justify the code is compiled by x64 or x86, as i know i cpp i can use

      #ifdef __x64
      doA
      #elif __x86
      doB
      #endif

      D Offline
      D Offline
      devvvy
      wrote on last edited by
      #2

      sorry, but why the hell is your first name "Dracula"? :)

      dev

      D 1 Reply Last reply
      0
      • D Dracula Wang

        i am writing some code, if will act different ways on x64 and x86, does there is a way to justify the code is compiled by x64 or x86, as i know i cpp i can use

        #ifdef __x64
        doA
        #elif __x86
        doB
        #endif

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Check the Operation System Name.In X64 Bit Operation System have X64.

        mailto: anubhava.prodata@gmail.com

        D 1 Reply Last reply
        0
        • L Lost User

          Check the Operation System Name.In X64 Bit Operation System have X64.

          mailto: anubhava.prodata@gmail.com

          D Offline
          D Offline
          Dracula Wang
          wrote on last edited by
          #4

          for now, i am just using the return IntPtr.Size == 8,

          1 Reply Last reply
          0
          • D devvvy

            sorry, but why the hell is your first name "Dracula"? :)

            dev

            D Offline
            D Offline
            Dracula Wang
            wrote on last edited by
            #5

            just for fun. there is a movie with this name, and some games

            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