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

Search:

Type: Posts; User: beginner91

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    yes i had the express version of VS2012 but i uninstalled it
    so this is effecting my VS2008 now?



    i don't know how it can be broken because other programs work fine
  2. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    this is the only visual studio command prompt i found:
    31377
  3. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    no i definately used Visual Studio Command Prompt
    c:\Program Files\Microsoft Visual Studio 9.0\VC\run_process_from_service>make.bat
  4. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    i don't have experience using batch files so i wasn't sure what to do.

    i got this error:
    test.cpp
    test.cpp(1) : fatal error C1083: Cannot open include file: 'windows.h': No such
    file or...
  5. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    i can see its installed because it appears in the Service Management Console list.


    C:\testService>if -u == goto UNINSTALL

    C:\testService>sc create MyServiceX binPath=...
  6. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    ok i attached the code

    31371
  7. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    i am using the code igor posted to this thread (post #42). the only line i changed was the path
  8. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    i don't know. i thought that code just told the program where the exe file is
  9. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    when i try start the service from the system control management the message error 2: system cannot find the file specified appears and when i run the batch file in the cmd i get the same message
  10. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    can't debug a service program and i can't test the service because of this error
    the service installed fine but it won't start
  11. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    this is the code for GetExeFolderName

    CString GetExeFolderName()
    {
    TCHAR path[MAX_PATH] = {0};
    GetModuleFileName(GetModuleHandle(NULL), path, MAX_PATH);
    LPTSTR p = _tcsrchr(path, _T('\\'));...
  12. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    ok so i entered the wrong path name?
    if GetExeFolderName() gets the folder, then the path should just be testService.exe?
  13. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    contents of what? i don't understand
  14. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    the only line that has a path in it is this:

    CString path = GetExeFolderName() + TEXT("C:\\testService\\Debug\\testService.exe");
    and that is the correct path to the exe file so i don't know...
  15. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    yes and i got this error:
    [SC] StartService FAILED 2:
    The system cannot find the file specified.
  16. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    the GUI program i am trying to run is a visual basic program
  17. Replies
    82
    Views
    9,791

    Re: running a GUI program in the background

    yes it built successfully
  18. Replies
    4
    Views
    1,552

    Re: question about RPC

    no i don't want to control the whole computer... just this one part of a program
  19. Replies
    4
    Views
    1,552

    question about RPC

    so i know RPC is based on extending the notion of conventional, or local procedure calling, so that the called procedure need not exist in the same address space as the calling procedure. The two...
  20. Replies
    35
    Views
    4,610

    Re: getting RpcExceptionCode 5 with RPC code

    ok i followed that tutorial and i got this error in the server program:
    error C2664: 'RpcServerUseProtseqEpW' : cannot convert parameter 1 from 'unsigned char *' to 'RPC_WSTR'

    so i changed this...
  21. Replies
    35
    Views
    4,610

    Re: getting RpcExceptionCode 5 with RPC code

    i saw that example before but i don't understand it. it talks about the files being used but there is no link to these files...
  22. Replies
    35
    Views
    4,610

    Re: getting RpcExceptionCode 5 with RPC code

    just before the line What is this RPC anyway? there is a link to download the code near the top of the page.
    this is an old example and nobody has written to it since 2008 and there is no way to...
  23. Replies
    35
    Views
    4,610

    Re: getting RpcExceptionCode 5 with RPC code

    could you download the code and try it yourself?
    http://www.aspfree.com/c/a/net/introduction-to-rpc-on-windows-part-i/
    the link to download the code is in the 3rd paragraph
  24. Replies
    35
    Views
    4,610

    Re: getting RpcExceptionCode 5 with RPC code

    i'm using a windows 7 computer and visual studio 2008
  25. Replies
    35
    Views
    4,610

    Re: getting RpcExceptionCode 5 with RPC code

    no one else had a similar problem. i couldn't find a solution
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center