Thread: MAKE NoN-GUI SERVER APPLICATION ON VISUAL STUDIO

  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    2

    MAKE NoN-GUI SERVER APPLICATION ON VISUAL STUDIO

    did a project of Server Socket in Visual studio in C++ MFC based. Now, after debugging the project, server GUI opens, then after clicking on the CONNECT button on server GUI, then you can connnect the clients to that server and so on .
    Now i want to use that server exe file in some other computer. So that whenever that computer starts, that server exe automatically starts. so for i need to disable the connect button, so that after debugging, server GUi opens and connected automatically.. But i dont want that server GUI opens in another computer in autostart as well. i want to disable that server GUI.
    I got an idea of modeless dialog to work on it. Is it good or what approach should i use ?
    i am at beginner level, so need guidence from all of you guys . thanks

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Whatever the answer is, it's going to be windows specific.
    Moved to windows forum.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2012
    Posts
    2
    I cannot. I build the whole project on MFC . Is there any way to do this in MFC ?

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    If it's non-interactive (no user interaction involved) it should be a Windows Service.

    First, create a console application that does exactly what you want to do without user interaction. Test it by starting it manually. Then port your code to a Windows Service. That's a project template, but you will need to google for some tutorials. But first, get it to run in a console application without user interaction.

    Please note that when using MFC, those components must be installed on the target computer. Alternativly, you could link them statically by setting your project options to do so.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Visual Studio-produced DLL crashing VS-VB application
    By mathguy in forum C Programming
    Replies: 4
    Last Post: 02-22-2012, 03:59 PM
  2. TCP Application Using C++ in Visual Studio
    By zawii87 in forum C++ Programming
    Replies: 1
    Last Post: 08-11-2011, 05:49 AM
  3. win32 application wizard in microsoft visual studio
    By stanlvw in forum C++ Programming
    Replies: 4
    Last Post: 02-25-2008, 01:26 AM
  4. Visual Studio and FTP Server...
    By Grayson_Peddie in forum Networking/Device Communication
    Replies: 0
    Last Post: 09-03-2003, 12:31 PM
  5. Developing TCP/IP Application in Microsoft Visual Studio VC++
    By ashu12 in forum Windows Programming
    Replies: 1
    Last Post: 09-11-2002, 03:30 AM

Tags for this Thread