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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Translation from C# to C++ [modified]

Translation from C# to C++ [modified]

Scheduled Pinned Locked Moved Managed C++/CLI
questioncsharpc++
5 Posts 2 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.
  • B Offline
    B Offline
    Badboy22TR
    wrote on last edited by
    #1

    What is the translation of this code from C# to C++ ?? public String A { get { return a; } } public String B { get { return b; } } Thank you...

    modified on Wednesday, February 20, 2008 8:21 AM

    C 1 Reply Last reply
    0
    • B Badboy22TR

      What is the translation of this code from C# to C++ ?? public String A { get { return a; } } public String B { get { return b; } } Thank you...

      modified on Wednesday, February 20, 2008 8:21 AM

      C Offline
      C Offline
      crysler
      wrote on last edited by
      #2

      [Message Deleted]

      B 1 Reply Last reply
      0
      • C crysler

        [Message Deleted]

        B Offline
        B Offline
        Badboy22TR
        wrote on last edited by
        #3

        Sorry, can you look to the code again ? It's C# (I pasted the wrong one which i tried to translate) Replace public with public : and String with String^ ? I got errors for "get"...

        C 1 Reply Last reply
        0
        • B Badboy22TR

          Sorry, can you look to the code again ? It's C# (I pasted the wrong one which i tried to translate) Replace public with public : and String with String^ ? I got errors for "get"...

          C Offline
          C Offline
          crysler
          wrote on last edited by
          #4

          [Message Deleted]

          B 1 Reply Last reply
          0
          • C crysler

            [Message Deleted]

            B Offline
            B Offline
            Badboy22TR
            wrote on last edited by
            #5

            Thank you very much :)

            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