Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vikram sadashiv sawant
    New Member
    • Jul 2007
    • 1

    Question

    How to use varible which is from different program?
  • Meetee
    Recognized Expert Contributor
    • Dec 2006
    • 928

    #2
    Originally posted by vikram sadashiv sawant
    How to use varible which is from different program?
    Hi,

    Do you mean variables of two different classes or files? Kindly give some details about what you want to do.

    Regards

    Comment

    • momotaro
      Contributor
      • Sep 2006
      • 357

      #3
      please give a brief description of your question in the header next time :)

      Best regards

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        If you followed the Posting Guidelines then we might have been able to answer your question by now...

        Anyway, please do so in the future. Thanks!

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          Originally posted by vikram sadashiv sawant
          How to use varible which is from different program?
          Put these variables in a .cpp file by themselves.
          Use extern in the other .cpp files

          Then just add this .cpp with the variables to the build of any program.

          Later, you can learn how to avoid this and use a library instead.

          Comment

          Working...