Thread: Network Talk tool help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    1

    Network Talk tool help

    The question is:

    What i need to know is how i can put a variable into a function..which is System("");

    but for a more detailed question please read on below

    Hi im new to C++ but do know (html,asp,php,mysql,javascript) all the major internet ones so i have a coding background. My question is that im trying to make a basic program to later become more in depth but what it is to do is take a typed in message then send it to another computer but before even getting to this far i have stummbled. im using the command
    Code:
    System(" .... ");
    what i need inside the system command is
    Code:
    net send pcname string
    In case your lost already this is what i have already
    Code:
      
    #include <iostream.h>
    #include <stdlib.h>
    
    int main(void)
    { 
      char string[256];
      char string2[256];
      cout<<"Please enter your Message to pcname:";
      cin.getline(string, 256, '\n');
      cout <<"You entered: "<<string;
    
    
      cout <<"\n\n";
      system("net send pcname" <<string);
      system("Pause");
      return 0;
    }

    its getting the bit in the system part to work
    it should basically read

    Code:
    System("net send pcname HELLO WORLD");
    HELLO WORLD being whatever string is.

    After all that what i need to know is how i can put a variable into a function..which is System("");


    Sorry if ive confused anyone but any help will be MUCH appreciated

    Thanks
    Chris Ella
    Last edited by chrisella; 08-24-2004 at 01:26 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What one line unix talk combo generates the following....
    By Overworked_PhD in forum Tech Board
    Replies: 1
    Last Post: 01-20-2008, 08:48 AM
  2. 3D Network Analysis Tool
    By durban in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 11-08-2005, 06:33 PM
  3. Need help with easy Network setup
    By the dead tree in forum Tech Board
    Replies: 9
    Last Post: 04-08-2005, 07:44 PM
  4. network problems
    By lucy in forum Tech Board
    Replies: 6
    Last Post: 01-01-2003, 03:33 PM
  5. WinXP Network Connections pop-up
    By DavidP in forum Tech Board
    Replies: 1
    Last Post: 10-02-2002, 05:36 PM