![]() |
|
#1
|
|||
|
|||
one program access another?i was just wondering if i could have like a main program that runs for like hours at a time and then a small program that is called when needed that sends a command to the big program to tell it it has something extra to do (eg. export data) so basicall the small program can be used remotely...
is this possible and what kind of approach would i need to take Regards Dal ![]() |
|
#2
|
|||
|
|||
|
This sort of thing is possible, but it's not easy. I've done a bit of Googling, and as far as I could see, you've 4 options:
1. Use files, which isn't great, but write something to a file using one program, then the other reads it from the same file & does what it needs to do. It's far from interactive & not really suitable for what you're asking. 2. Have the main program, and then fork off a child process which is your small applet to communicate with the main program. The parent knows of the child, and the child can communicate with the parent. Loook here for details: www.gnu.org 3. Have 2 seperate programs, and they can communiate using Pipes (unsure this is available on Windows). If the child has the process ID of the parent, it can do popen() to communiate with the parent. See here: www.ee.oulu.fi 4. Shared memory. An option, not great though. This isn't something I've ever done, so I'm no great help I'm afraid GF |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Urgernt: Extremely queer Apache access log | moothecow | Apache Web Server Forum | 1 | 20-Dec-2003 02:45 |
| Forbidden You don't have permission to access Undefined index: ../PHP_SELF | ghyndman | MySQL / PHP Forum | 2 | 15-Dec-2003 08:17 |
| error during program | rjd72285 | CPP / C++ Forum | 0 | 11-Nov-2003 18:49 |
| FREE 25 MB, No Ads, Control Panel, ASP, ColdFusion, PHP, MySQL, Access Hosting | rkmails | Free Web Hosting | 0 | 08-Sep-2003 05:49 |
| Access 2000 | pcxgamer | Web Design Forum | 6 | 23-May-2003 06:29 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The