D
Darin
I have an application that is one EXE with mutliple DLL's. In one of the
DLL's (libs.dll) that the EXE has refeneced, I have:
Public Class Globals
Public Shared gLogin as String
End Class
This variable is ued throughout my program in libs.dll, and other DLLs.
The user then starts up another occurance of the application. They login
and the gLogin variable is set.
Are the two programs using the same or different memory areas for this
global data? If either exit the software, should that do anything to the
other gLogin for the other program?
What are other people's thoughts on global variables. I know they aren't
great things to use, but I haven't figured out a clean method of passing
data around to different forms that may or may not get used.
Thanks.
Darin
DLL's (libs.dll) that the EXE has refeneced, I have:
Public Class Globals
Public Shared gLogin as String
End Class
This variable is ued throughout my program in libs.dll, and other DLLs.
The user then starts up another occurance of the application. They login
and the gLogin variable is set.
Are the two programs using the same or different memory areas for this
global data? If either exit the software, should that do anything to the
other gLogin for the other program?
What are other people's thoughts on global variables. I know they aren't
great things to use, but I haven't figured out a clean method of passing
data around to different forms that may or may not get used.
Thanks.
Darin