making a wstring variable global scope

This is a discussion on making a wstring variable global scope within the C++ Programming forums, part of the General Programming Boards category; Is the only procedure involved with what I'm trying to do the following: in .h file: Code: extern wstring variable; ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    222

    making a wstring variable global scope

    Is the only procedure involved with what I'm trying to do the following:

    in .h file:
    Code:
    extern wstring variable;
    and in the .cpp file:
    Code:
    wstring variable;
    ?

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    yep.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. global struct variable best use
    By Kempelen in forum C Programming
    Replies: 2
    Last Post: 06-05-2009, 05:08 AM
  2. Static global variable acting as global variable?
    By Visu in forum C Programming
    Replies: 2
    Last Post: 07-20-2004, 08:46 AM
  3. global variable turns zero
    By Roaring_Tiger in forum C Programming
    Replies: 5
    Last Post: 04-07-2003, 12:52 PM
  4. Problam with a global class variable
    By WebmasterMattD in forum C++ Programming
    Replies: 11
    Last Post: 01-21-2003, 03:38 AM
  5. making a variable with others
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 08-12-2002, 11:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21