CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 1999
    Posts
    10

    Re: One method- Use CSocket wiht Client and Server



    Thanks for your response it help me a bit but the main problem i am facing is that i can access only the shared directory of the other user. i cannot run the server application on that machine which listens my request. The main thing i need to know is how can i deploy my server application on that machin without being in the knowledge of that user. Also remember that we both are using NTworkstation4.0

  2. #2
    Join Date
    Mar 1999
    Posts
    10

    Re: One method- Use CSocket wiht Client and Server



    Is'nt it possible with the help of automation server in the way that i just put my server application on that machine which executes automatically at a particular time than i dispatch any request to execute my desired application.




  3. #3
    Join Date
    Mar 1999
    Posts
    22

    Re: Use Timer program or Worker Thread



    Hi.

    First of all, I don't know your LAN topology.

    But,if you login Domain name to server, not login in your machine,

    you can use "net send".

    C://net send [login name use] [message]

    At the same time, each host must open your program, not Server program.

    This dialog application starts worker thread including loop, this loop

    can check whether messagebox pops up, including your message.

    This message can include application name which you want to lanuch.

    So, shellexecute, CreateProcess or WinExe(?) launch the application.


    In order to make this program, you need some prerequistes.

    1) Can you use SPY++ to figure out z-order of child?

    2) Can you write Timer application to launch the application at the time when

    you set?

    3) Can you modify the static control of the other application by your program?

    4) Can you write the worker thread program to find whether messagebox is opened?


    So far, I made this kind of program and therefore I can advise you to do this.

    If you think that it is difficult for you to do this one time, you had better

    try to make the program one by one.


    Last, if you use CSocket or this program, the target window NT must open the

    Server program or this program.


    Hope for help.

    -Masaaki Onishi-

  4. #4
    Join Date
    Mar 1999
    Posts
    10

    Re: Use Timer program or Worker Thread



    Thanks for your response again.


    I've got some new ideas from you, i've a knowledge of worker thread and timers (implementation point of view) but need some help for spy z-oder..... and to modify the static control of other application. by the way why we need to modify the static control of other applicaion in this scenario.


    Dear if you know any articles regarding this problem on the net or if you personnally owning this material and its shareware so please send me the links or the material i'll be grateful to you.

    email: [email protected]

    [email protected]


    Thanks.

    Zain.



  5. #5
    Join Date
    Mar 1999
    Posts
    22

    Re: SPY++ window shows how the child control is put.



    Hi.


    When you open SPY++, the window showing tree identifes how the child controls

    are put on the parent window.

    For example, MessageBox caption->OK button->static control.

    After this, we can catch the window handle to use GetTopWindow and GetWindowNext

    or GetWindow of CWnd function. Also we use CWnd::FindWindow(class name, window

    caption).

    FindWindow is only avaliabe for the parent window. After this, you can

    catch the child window handle by GetTopWindow...


    When you use net send command on Window NT, you put some message on MessageBox.

    This messsage include the information which you want to send.

    After you get this string, you can cut the string to get the application name

    , time and so on.


    Hope for help.

    -Masaaki Onishi-







Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured