April 30th, 2013 10:45 AM
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
April 30th, 2013 09:26 AM
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
April 30th, 2013 08:53 AM
this is the code for GetExeFolderName
CString GetExeFolderName()
{
TCHAR path[MAX_PATH] = {0};
GetModuleFileName(GetModuleHandle(NULL), path, MAX_PATH);
LPTSTR p = _tcsrchr(path, _T('\\'));...
April 30th, 2013 08:11 AM
ok so i entered the wrong path name?
if GetExeFolderName() gets the folder, then the path should just be testService.exe?
April 30th, 2013 08:00 AM
contents of what? i don't understand
April 30th, 2013 07:24 AM
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...
April 30th, 2013 06:58 AM
yes and i got this error:
[SC] StartService FAILED 2:
The system cannot find the file specified.
April 30th, 2013 06:43 AM
the GUI program i am trying to run is a visual basic program
April 30th, 2013 02:59 AM
yes it built successfully
April 17th, 2013 09:52 AM
no i don't want to control the whole computer... just this one part of a program
April 17th, 2013 08:13 AM
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...
April 11th, 2013 05:06 AM
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...
April 11th, 2013 04:39 AM
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...
April 11th, 2013 03:42 AM
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...
April 11th, 2013 03:34 AM
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
April 11th, 2013 03:31 AM
i'm using a windows 7 computer and visual studio 2008
April 11th, 2013 03:02 AM
no one else had a similar problem. i couldn't find a solution