how create windows global variables in c# winform -
(at first use c# winform , .net framework4)
is there way create class library (dll) static variables , variable programs concurrent (and static variables not reset each program).
more explain:
for example create dll static variables , install on gac add reference of tow program.
now want set variables in program1 , variables on program2.
how can that?
basically can accomplish
- storing value in storage accessible different programs
- using process process comunication mechanism (ipc mentioned @slaks)
storages comes mind are: database, windows registry, settings file
process process communication may wcf, or system.io.pipes, or others: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.85).aspx
it depends on needs. performace critical? need infrom other process value has changed, or other process request value? how many processes access value @ same time?
Comments
Post a Comment