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 11-Nov-2004, 16:35
leitz leitz is offline
New Member
 
Join Date: Nov 2004
Posts: 20
leitz is on a distinguished road

Working with other programs?


Is there any tutorial or anyone can help me with some basic stuff about connecting my program with some others? Lets say with Mirc would be nice...
Example:

My program asks me for input string like:

CPP / C++ / C Code:

int main()
{
 char word[50];
 cout<<"Write some word: ";
 cin>>word;
 
 ...

 return 1;
}



Now how can I send this string to other program like MIRC and display it there?
Last edited by dsmith : 11-Nov-2004 at 17:23. Reason: Please use [c] & [/c] for syntax highlighting
  #2  
Old 11-Nov-2004, 17:50
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Hey leitz. Welcome to GIDForums™.

I have written a tutorial that explains how to create a communication pipe between two programs. You can find it here. Unfortunately, in your case, that is written for *nix. I don't program a whole lot in windows, so I didn't look very hard, but I don't believe that windows has the "fork" command. So this may or may not help you.

You may want to look at this anyways, as what you are asking is probably not a trivial task.

Good luck.
  #3  
Old 12-Nov-2004, 07:25
leitz leitz is offline
New Member
 
Join Date: Nov 2004
Posts: 20
leitz is on a distinguished road
I alredy looked this tutorial yesterday, but I saw it if for *nix then
I need for win. I am working in Borland c++.
  #4  
Old 12-Nov-2004, 07:37
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Quote:
Originally Posted by leitz
I alredy looked this tutorial yesterday, but I saw it if for *nix then
I need for win. I am working in Borland c++.

Yeah, that is what I figured. I will poke around and see if there is anything I can find that will allow something similiar in Windows.
  #5  
Old 14-Nov-2004, 06:22
leitz leitz is offline
New Member
 
Join Date: Nov 2004
Posts: 20
leitz is on a distinguished road
Quote:
Originally Posted by dsmith
Yeah, that is what I figured. I will poke around and see if there is anything I can find that will allow something similiar in Windows.

OK, thx...I hope u find something usefull...
 
 

Recent GIDBlogPython ebook by crystalattice

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
help in c programs kitin21 C Programming Language 4 08-Sep-2004 08:38
apache php no longer working (MX??) XP?? ChicoMendez Apache Web Server Forum 5 30-Aug-2004 11:51
PHP mail() not working sajuat MySQL / PHP Forum 1 22-Jul-2004 08:10
CD Drive really working,but not really working, strange!! Joel86 Computer Hardware Forum 3 11-May-2004 09:45
premade forums and other premade php programs invaderz MySQL / PHP Forum 1 06-Jul-2003 03:10

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

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


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