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 pass reference

How to pass reference

Scheduled Pinned Locked Moved C#
helptutorialquestion
3 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.
  • U Offline
    U Offline
    User 3803992
    wrote on last edited by
    #1

    Can I please help to know, how to pass a reference from your command class to a windows user ? Can any body give me a code? Thanks Kedie

    C S 2 Replies Last reply
    0
    • U User 3803992

      Can I please help to know, how to pass a reference from your command class to a windows user ? Can any body give me a code? Thanks Kedie

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

      What do you mean ? Any reference type ( i.e. a class ) is passed by reference already. What is your 'command class' ? How do you want to 'pass a reference to a windows user' ?

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

      1 Reply Last reply
      0
      • U User 3803992

        Can I please help to know, how to pass a reference from your command class to a windows user ? Can any body give me a code? Thanks Kedie

        S Offline
        S Offline
        sysrev
        wrote on last edited by
        #3

        This may not help but if you mean passing arguments by reference then I found I had to put the keyword "ref" in front of the argument - both in the definition and the use. i.e. MyFunc(ref int argument) & MyRef(ref argument). I hope this is of some help.

        Ted Edwards

        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