forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Windows NT Services

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Jul 31, 2003 3:35 pm    Post subject: Windows NT Services Reply with quote

Has anyone tried to create a script that will run as a service under Windows NT/XP?
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jul 31, 2003 5:30 pm    Post subject: Reply with quote

Why, if I may ask? You might look at this topic:

http://forum.vdsworld.com/viewtopic.php?t=1801

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Jul 31, 2003 6:31 pm    Post subject: Reply with quote

Because some things it makes more sense to leave running all the time instead of having start and stop when a user logs in and out.

Thanks for the link. I'll look at some of those suggestions. What I don't understand is what's special about a service that a VDS EXE can't run as one all by itself.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Jul 31, 2003 7:15 pm    Post subject: Reply with quote

I looked into this some time back. With 9x it's no problem, no special
needs, but with the NT systems, there's some sort of special communication
between the system and the service. VDS back then was not capable of
being able to accept or reply to these communications between the system
and an exe running as a service.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Jul 31, 2003 8:30 pm    Post subject: Reply with quote

I'd love to be able to run some things on my computer as services directly
with VDS. With it's new API capabilities would it be possible to do this? Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Aug 01, 2003 12:43 am    Post subject: Reply with quote

I don't know, I haven't checked into again lately.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Aug 01, 2003 2:09 am    Post subject: Reply with quote

It seems that it would require the application to export one or more functions, which
is not possible with VDS 5. So I don't think it will be possible using VDS 5, even if using its
extended DLL calling features.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 01, 2003 12:55 pm    Post subject: Reply with quote

What does it mean by "to export one or more functions"? Do you think
this will be added into VDS in the future? Perhaps by VDS 8? Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Aug 01, 2003 1:56 pm    Post subject: Reply with quote

Exported functions are the APIs you can call, in a DLL. I didn't realise that an EXE can export them as well, but perhaps it can. Or perhaps the service has to be written as a DLL.
At one time consideration was given to letting VDS create its own extension DLLs. In the end, it was decided that the facility to create units that could be compiled in to the EXE would be easier all round.
It wouldn't be impossible for a future version of VDS to be able to create services or DLLs, but what would be harder would be a way of testing them. Possibly an easier way would be to create some separate wrapper DLL or EXE that could run a VDS prog as a service. But that's probably what the programs mentioned in the link given earlier do, anyway.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Aug 01, 2003 2:30 pm    Post subject: Reply with quote

I know it would take time.. But just wondering would the dlls be real dlls or interpreted ones like the exes create by VDS or VB dlls
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group