I'm new to C++ Builder and come from a Delphi development environment. I'm trying to create my first application (with something of a gung-ho attitude I'm afraid) and have a Global unit in the project with global variables defined in it (i.e. gbvUserID (integer), gbvUserKnownAs (String)). I'm probably missing the obvious but what do I need to do to enable other forms to access these global variables ?
I've tried declaring them in the .cpp file and the .h file and also made use of the extern keyword - however my other forms still return messages related to an unresolved external declaration - _gbvUserID. It's probably something simple - can someone give me a pointer ?
Thanks in advance.
Steve
I've tried declaring them in the .cpp file and the .h file and also made use of the extern keyword - however my other forms still return messages related to an unresolved external declaration - _gbvUserID. It's probably something simple - can someone give me a pointer ?
Thanks in advance.
Steve