Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a VFP service - actually making it work
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00587501
Message ID:
00587648
Views:
30
Yeah, with that we actually went into the C++ and substituted the VB createprocess with the VFP createprocess (if I remember right). There's a little more work involved than SRVANY...
>What did you modify? The C++ code?
>
>The app does start as a service, it just isn't telling the service manager its started. Is there a simple way to tell the service manager the app has started?
>
>Thanks,
>John G.
>
>>Check out this link:
>>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaxctrl/html/msdn_ntsrvocx.asp
>>I think this eventually became the VB ActiveX NT Service Control. We just modified this to call a VFP .exe . Worked great and is a good alternative to SrvAny and if you can't use a COM server...
>>>Thanks. Isn't there a way to do this without a third-party product?
>>>
>>>
>>>>>There is nary any documentation on doing this in VFP.
>>>>>
>>>>>I setup a simple little program to test how to create a service in VFP7 using SYS(2340, 1). I created it as an EXE. I installed the Windows 2000 Resource kit and ran the Service Installation Wizard. That went well and it added the 'VFP Service Test' to the services control panel.
>>>>>
>>>>>The problem I am having is when I start the process in either 'Interact with Desktop' mode or no interation the Service Manager is coming back with:
>>>>>
>>>>>"Error 1503: The service did not respond to the start or control request in a timely fashion"
>>>>>
>>>>>The program is actually running in the backgroud the whole time the starting service progress bar is running.
>>>>>
>>>>>What do I need to do in the program to tell the Service Manager the process has started?
>>>>>
>>>>
>>>>Take a look at Thread #584505.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform