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

  1. storing value in storage accessible different programs
  2. 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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -