Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: kw1991

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    ok i tried that and got this message:
    [SC] StartService FAILED 2:
    The system cannot find the file specified.
  2. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    ok thanks for the code. how do i install the service so it appears in the Service Management Console?
  3. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    ok what questions still need answering? i am using Windows 7, i created a windows service application using c++ visual studio and it uses the local service account
  4. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    when i run the service and check the processes that are running (by using task manager) I don't see the GUI program running

    In the Service Management Console i changed the log on property to local...
  5. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    i am using window7. i tried setting the service to interact with the desktop but that doesn't work either
  6. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    i don't know anything about the code of the external program.. so i guess SW_HIDE isn't a good option then
  7. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    i have never used HOOK before. is there an easier way to hide the window of the external program?
  8. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    my createprocess program is a console application (the code i put in the first post). can i add hook WH_CBT to this?
  9. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    ok hook be used in a c++ console application? examples on google only seem to be showing examples in win32
  10. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    i can't change the external program so could you show some code for (WH_CBT) HOOK?
  11. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    ok so how do i solve this problem? what code do i need to hide the window?
  12. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    ok adding the line ShowWindow(hWnd, SW_SHOW ); to the test program causes the window to be displayed when i run createprocess
  13. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    so where should i call ShowWindow again in my test program?
    and do you mean like this:

    ShowWindow(hWnd, SW_SHOW );
  14. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    so i need to change my code that hides the window?


    info.dwFlags = STARTF_USESHOWWINDOW;
    info.wShowWindow = FALSE;
  15. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    i just created a blank win32 project in visual studios. i didn't change any code
    so this is the code visual studios generates:


    BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
    {
    HWND...
  16. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    ok i created a win32 project and it has the ShowWindow(hWnd, nCmdShow) function. i ran it through my createprocess code and it works. The windows is hidden and the program is running in the background
  17. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    i know the code i posted works because i tested it with notepad and it worked but for some reason it doesn't work with the other program
  18. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    i can't access the code of the other program. i didn't create it so i have no idea about the code
    i think it was made using visual basic
  19. Replies
    82
    Views
    9,042

    Re: running a GUI program in the background

    it runs my program but it displays the window. i want the window to be hidden
  20. Replies
    82
    Views
    9,042

    running a GUI program in the background

    i created a windows service that will run another program. but the program i want to run has a gui and i don't want the gui to be visible, i just want the program to run in the background.

    But i...
  21. Replies
    3
    Views
    1,113

    Re: access denied in client

    i am not really sure what i need to change in my program
  22. Replies
    3
    Views
    1,113

    access denied in client

    I followed the MSDN tutorial on RPC programs:
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa379010(v=vs.85).aspx

    but when i run the client i get access denied.


    void main()
    {
    ...
  23. Replies
    5
    Views
    1,250

    Re: unresolved external symbol error

    ContextExample_s.c was generated when i compiled the idl file. i didn't change any of the code
  24. Replies
    5
    Views
    1,250

    Re: unresolved external symbol error

    no i did not ask in the comments and discussions section. i thought this was the right section to post questions?

    full error:
    error LNK2001: unresolved external symbol...
  25. Replies
    5
    Views
    1,250

    unresolved external symbol error

    I have tried following this tutorial to create an RPC server and client:
    http://www.codeproject.com/Articles/4878/Introduction-to-RPC-Part-2

    but i got this error:
    error LNK2001: unresolved...
Results 1 to 25 of 30
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center