GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 07-Oct-2003, 07:39
dgoulston dgoulston is offline
New Member
 
Join Date: Oct 2003
Posts: 1
dgoulston is an unknown quantity at this point

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  
Old 07-Oct-2003, 11:26
Garth Farley Garth Farley is offline
Awaiting Email Confirmation
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
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 GIDBlogRunning Linux Programs at Boot Time by gidnetwork

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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 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 · GIDApp · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 05:55.


vBulletin, Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.