Type: Posts; User: kw1991
Search took 0.01 seconds.
April 29th, 2013, 11:01 AM
ok i tried that and got this message:
[SC] StartService FAILED 2:
The system cannot find the file specified.
April 29th, 2013, 10:17 AM
ok thanks for the code. how do i install the service so it appears in the Service Management Console?
April 29th, 2013, 07:47 AM
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
April 29th, 2013, 04:50 AM
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...
April 29th, 2013, 04:38 AM
i am using window7. i tried setting the service to interact with the desktop but that doesn't work either
April 22nd, 2013, 08:28 AM
i don't know anything about the code of the external program.. so i guess SW_HIDE isn't a good option then
April 22nd, 2013, 07:50 AM
i have never used HOOK before. is there an easier way to hide the window of the external program?
April 22nd, 2013, 07:42 AM
my createprocess program is a console application (the code i put in the first post). can i add hook WH_CBT to this?
April 22nd, 2013, 07:33 AM
ok hook be used in a c++ console application? examples on google only seem to be showing examples in win32
April 22nd, 2013, 07:24 AM
i can't change the external program so could you show some code for (WH_CBT) HOOK?
April 22nd, 2013, 07:12 AM
ok so how do i solve this problem? what code do i need to hide the window?
April 22nd, 2013, 06:59 AM
ok adding the line ShowWindow(hWnd, SW_SHOW ); to the test program causes the window to be displayed when i run createprocess
April 22nd, 2013, 06:46 AM
so where should i call ShowWindow again in my test program?
and do you mean like this:
ShowWindow(hWnd, SW_SHOW );
April 22nd, 2013, 06:32 AM
so i need to change my code that hides the window?
info.dwFlags = STARTF_USESHOWWINDOW;
info.wShowWindow = FALSE;
April 22nd, 2013, 06:20 AM
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)
April 22nd, 2013, 06:07 AM
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
April 22nd, 2013, 05:50 AM
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
April 22nd, 2013, 05:42 AM
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
April 22nd, 2013, 05:35 AM
it runs my program but it displays the window. i want the window to be hidden
April 22nd, 2013, 05:25 AM
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.
April 16th, 2013, 10:58 AM
i am not really sure what i need to change in my program
April 16th, 2013, 08:55 AM
I followed the MSDN tutorial on RPC programs:
but when i run the client i get access denied.
April 16th, 2013, 06:00 AM
ContextExample_s.c was generated when i compiled the idl file. i didn't change any of the code
April 16th, 2013, 05:51 AM
no i did not ask in the comments and discussions section. i thought this was the right section to post questions?
error LNK2001: unresolved external symbol...
April 16th, 2013, 05:23 AM
I have tried following this tutorial to create an RPC server and client:
but i got this error:
error LNK2001: unresolved...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!