Network usernames ...

This is a discussion on Network usernames ... within the Networking/Device Communication forums, part of the General Programming Boards category; Hi! I want to make a program to talk to people in a network, so i'll be using the system ...

  1. #1
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262

    Network usernames ...

    Hi!

    I want to make a program to talk to people in a network, so i'll be using the system net send command ... I've a couple of questions though:

    does anyone know if there is a way I can actually check to see if people are online or not?? there are computer names of course, but if a user logs onto a computer, you can either send the message to the computer name, or the user name of the person whose on it. (I'm sure you all know this already). I just think it'd be a neat way of making a program, kinda like MSN/Googletalk but on a console

    also, is there a better way of communication besides using net send?

    thanks!

    twomers

  2. #2
    Yah. Morgul's Avatar
    Join Date
    Feb 2005
    Posts
    109
    It is best to not use netsend. SP2 shuts it down my default so unless you want people who use your program to have to go through a long process to reenable it, I would suggest learning Winsock or another such api system and writing your own program entirely.
    Sic vis pacum para bellum. If you want peace, prepare for war.

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Here is a thread that should answer your question:
    Searching User Currently Logged On

  4. #4
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Hey,

    thanks for that anonytmouse!! I tried searching through the forums beforehand to see if anyone had posted it, but I restricted it solely to the networking board .... either way ....

    it's giving me this error:

    error C2664: 'lstrcpyA' : cannot convert parameter 2 from 'unsigned char [16]' to 'const char *'

    which is referring to this line:

    Code:
    lstrcpyA(szMachine, pNames[i].name);
    hmmm, any ideas??

  5. #5
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    I originally compiled it with C. C++ has stricter type checking. In this case, you can just use a cast:
    Code:
    lstrcpyA(szMachine, (LPCSTR) pNames[i].name);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 3D Network Analysis Tool
    By durban in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 11-08-2005, 05:33 PM
  2. Need help with easy Network setup
    By the dead tree in forum Tech Board
    Replies: 9
    Last Post: 04-08-2005, 07:44 PM
  3. Network Users
    By Traveller in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-20-2004, 02:40 PM
  4. network problems
    By lucy in forum Tech Board
    Replies: 6
    Last Post: 01-01-2003, 02:33 PM
  5. WinXP Network Connections pop-up
    By DavidP in forum Tech Board
    Replies: 1
    Last Post: 10-02-2002, 05:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21