- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have two programs running indepedently (no parent/child relationships) simultaneously on the same machine.
Does anyone know the simplest way [without using a shared file] that I can change a variable in program 1 and have program 2 read the new value directly from memory.
Clearly SETENVQQ could work if the variable was only changed once and the 2nd program started after the first, but the variable is being continously changed in program 1.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The simplest way is a DLL with a read-write section. See the provided sample DLL_Shared_Data for an example. The shared variable may be a module variable (my preference) or a COMMON.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page