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. please: how a socket server prog can be called by MFC client??

please: how a socket server prog can be called by MFC client??

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminhelpquestion
6 Posts 4 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.
  • A Offline
    A Offline
    alpa shah
    wrote on last edited by
    #1

    Hello all.., I have to create one socket server application. In which server's prog is written in C Language and is run by CMD prompt..Now i have to develop one client prog by VC++ such that it can call that socket server's prog... So plz help me!!!!!! that how it can be possible ...and i'm also new to MFC...:(( Waiting for reply...

    alpa shah

    N T 2 Replies Last reply
    0
    • A alpa shah

      Hello all.., I have to create one socket server application. In which server's prog is written in C Language and is run by CMD prompt..Now i have to develop one client prog by VC++ such that it can call that socket server's prog... So plz help me!!!!!! that how it can be possible ...and i'm also new to MFC...:(( Waiting for reply...

      alpa shah

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      if what u want is to run the exe from the clicent, use ShellExecute. ShellExecute( 0, _T("open"), _T("c:\\WINDOWS\\system32\\calc") ,0,0,SW_SHOW); un the place of c:\\WINDOWS\\system32\\calc, put the full path of ur exe.

      nave

      T A 2 Replies Last reply
      0
      • N Naveen

        if what u want is to run the exe from the clicent, use ShellExecute. ShellExecute( 0, _T("open"), _T("c:\\WINDOWS\\system32\\calc") ,0,0,SW_SHOW); un the place of c:\\WINDOWS\\system32\\calc, put the full path of ur exe.

        nave

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Naveen R wrote:

        ShellExecute( 0, _T("open"), _T("c:\\WINDOWS\\system32\\calc") ,0,0,SW_SHOW);

        i believe he want to create Socket Server Program!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

        1 Reply Last reply
        0
        • A alpa shah

          Hello all.., I have to create one socket server application. In which server's prog is written in C Language and is run by CMD prompt..Now i have to develop one client prog by VC++ such that it can call that socket server's prog... So plz help me!!!!!! that how it can be possible ...and i'm also new to MFC...:(( Waiting for reply...

          alpa shah

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          alpa shah wrote:

          have to develop one client prog by VC++ such that it can call that socket server's prog... So plz help me!!!!!! that how it can be possible ...and i'm also new to MFC...:((

          ' Run your Socket Server Program on CMD line.. and (If you Know, or Idea about sockets) you have to to create a client program and connect to ip of your computer system and post at which socket server is listening.  if you don't know the ipaddress of your computer you can use loopback ipaddress i.e. (127.0.0.1)

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

          1 Reply Last reply
          0
          • N Naveen

            if what u want is to run the exe from the clicent, use ShellExecute. ShellExecute( 0, _T("open"), _T("c:\\WINDOWS\\system32\\calc") ,0,0,SW_SHOW); un the place of c:\\WINDOWS\\system32\\calc, put the full path of ur exe.

            nave

            A Offline
            A Offline
            alpa shah
            wrote on last edited by
            #5

            Thanks for ur suggestion...I'll surely apply it....:)

            alpa shah

            H 1 Reply Last reply
            0
            • A alpa shah

              Thanks for ur suggestion...I'll surely apply it....:)

              alpa shah

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              or you can use ShellExecuteEx

              _**


              **_

              WhiteSky


              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