global boolean

  • 13 years ago

    I already post this in C++ but doesnt look like theres much action there, here it goes:

    (For c++)

    Hi:


    I really need help, I can not figure how to create a global variable that can be changed and used in

    several classes.


    I got many suggestions, but i can not make any of them work, always get errors...


    the last solution i tried was doing a "afile.h" where i put the variable using extern... but then i got "linking" errors...


    How can i solve this problem? I just need a boolean variable that can be "seen" anywhere...


    Please help me, if possible write down the code, because each word I write today as at least one error...


    Thank you in advance
















Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Anyone who considers arithmetic methods of producing random digits is, of course, in a state of sin.” - John von Neumann