Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Sending text as popup message

Sending text as popup message

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
13 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Mr Bose Dayala

    Hi, can anybody let me know how to send a text just like popup message to another system(by selecting the username from dropdown box) in LAN through program. thanx in advance Thomas. ThomasKennedyBose

    C Offline
    C Offline
    cr97
    wrote on last edited by
    #2

    I don't know special api-calls for this ... but maybe you can use the Windows command "net send" ??? (translated from a german windows ...) NET SEND {Name|*|/DOMAIN[:Name]|/USERS} Message Example: NET SEND ThomasBoseKenn "Do you need further help ?" cr97

    M 1 Reply Last reply
    0
    • M Mr Bose Dayala

      Hi, can anybody let me know how to send a text just like popup message to another system(by selecting the username from dropdown box) in LAN through program. thanx in advance Thomas. ThomasKennedyBose

      Z Offline
      Z Offline
      Zdeslav Vojkovic
      wrote on last edited by
      #3

      older applications like PopUp utility on Win95 use mailslots (Popup creates mailslot named "messngr", and periodically checks if there are new messages in mailslot. when sending messages, it simply writes to messngr mailslot on another machine) you can also use messenger service on Win2K and later, but i never used that, so i can't go into details (this is what is used when you issue a command like "net send <machine> hi" at command prompt).

      1 Reply Last reply
      0
      • C cr97

        I don't know special api-calls for this ... but maybe you can use the Windows command "net send" ??? (translated from a german windows ...) NET SEND {Name|*|/DOMAIN[:Name]|/USERS} Message Example: NET SEND ThomasBoseKenn "Do you need further help ?" cr97

        M Offline
        M Offline
        Mr Bose Dayala
        wrote on last edited by
        #4

        thanx...but it should be done through programatically...slect an user name from the dropdown box which displays all the users in one domain,when we click on "Send" button ,string in the edit box should be sent to that user just like a winpopup message(just like NET SEND cr97 "Ya..I need your help?" command works).... BR Thomas ThomasKennedyBose

        C 1 Reply Last reply
        0
        • M Mr Bose Dayala

          thanx...but it should be done through programatically...slect an user name from the dropdown box which displays all the users in one domain,when we click on "Send" button ,string in the edit box should be sent to that user just like a winpopup message(just like NET SEND cr97 "Ya..I need your help?" command works).... BR Thomas ThomasKennedyBose

          C Offline
          C Offline
          cr97
          wrote on last edited by
          #5

          And why don't you make a dialog, where the you can select the text and the user ??? And after pressing "SEND" you concatenate all the strings like strCall = "NET SEND "+strUserName+" \""+strMessage+"\""; then you can execute "strCall" ... is it a solution for you ? cr97 P.S. Sprichst du deutsch ?

          M 1 Reply Last reply
          0
          • C cr97

            And why don't you make a dialog, where the you can select the text and the user ??? And after pressing "SEND" you concatenate all the strings like strCall = "NET SEND "+strUserName+" \""+strMessage+"\""; then you can execute "strCall" ... is it a solution for you ? cr97 P.S. Sprichst du deutsch ?

            M Offline
            M Offline
            Mr Bose Dayala
            wrote on last edited by
            #6

            ya....I have already done that code.....any how I don't leave you :-)..now you tell me how to get the machine name(like "\\mdpworkstn64")by selecting the username....any APIs?? BR Thomas ThomasKennedyBose

            C 1 Reply Last reply
            0
            • M Mr Bose Dayala

              ya....I have already done that code.....any how I don't leave you :-)..now you tell me how to get the machine name(like "\\mdpworkstn64")by selecting the username....any APIs?? BR Thomas ThomasKennedyBose

              C Offline
              C Offline
              cr97
              wrote on last edited by
              #7

              IMHO if you have the user name it is not necessary to know the machine name ... cr97

              M 1 Reply Last reply
              0
              • C cr97

                IMHO if you have the user name it is not necessary to know the machine name ... cr97

                M Offline
                M Offline
                Mr Bose Dayala
                wrote on last edited by
                #8

                ok ..ok ....sorry for that scenario...actually what I want is I will give the machine number(or name like //mdpwksrnd64)and I want to get the user name who has logged in to that machine...is it possible?? ThomasKennedyBose

                C 1 Reply Last reply
                0
                • M Mr Bose Dayala

                  ok ..ok ....sorry for that scenario...actually what I want is I will give the machine number(or name like //mdpwksrnd64)and I want to get the user name who has logged in to that machine...is it possible?? ThomasKennedyBose

                  C Offline
                  C Offline
                  cr97
                  wrote on last edited by
                  #9

                  At moment i don't know if this s possible but i think so ... why do you wanna know who is logged in at a special machine ??? cr97

                  M 1 Reply Last reply
                  0
                  • C cr97

                    At moment i don't know if this s possible but i think so ... why do you wanna know who is logged in at a special machine ??? cr97

                    M Offline
                    M Offline
                    Mr Bose Dayala
                    wrote on last edited by
                    #10

                    suppose I want to send personal message to my friend who is supposed to be on that machine...but unfortunately some other person logs in....!!!!in that case first I will check for the logged in user by giving the machine name....hope you can understand the situation..:-) ThomasKennedyBose

                    C 1 Reply Last reply
                    0
                    • M Mr Bose Dayala

                      suppose I want to send personal message to my friend who is supposed to be on that machine...but unfortunately some other person logs in....!!!!in that case first I will check for the logged in user by giving the machine name....hope you can understand the situation..:-) ThomasKennedyBose

                      C Offline
                      C Offline
                      cr97
                      wrote on last edited by
                      #11

                      You can try to send the message to the user ... NET SEND bob "Hi ... are you online ?" This sends the message not to a machine but to a user in the network ! In this case it doesn't matter on which machine "bob" is logged in. Try it at the DOS-Prompt ... cr97

                      M 1 Reply Last reply
                      0
                      • C cr97

                        You can try to send the message to the user ... NET SEND bob "Hi ... are you online ?" This sends the message not to a machine but to a user in the network ! In this case it doesn't matter on which machine "bob" is logged in. Try it at the DOS-Prompt ... cr97

                        M Offline
                        M Offline
                        Mr Bose Dayala
                        wrote on last edited by
                        #12

                        :-))))))) ok ....leave this scenario...I just want to know who has logged in on a perticular machine(I know the machine name)....then how it is possible through program?? ThomasKennedyBose

                        C 1 Reply Last reply
                        0
                        • M Mr Bose Dayala

                          :-))))))) ok ....leave this scenario...I just want to know who has logged in on a perticular machine(I know the machine name)....then how it is possible through program?? ThomasKennedyBose

                          C Offline
                          C Offline
                          cr97
                          wrote on last edited by
                          #13

                          Good question ... ähm ... next one ... Therefore at the moment i don't know a solution ... maybe you find something in the "google groups" ??? cr97

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups