Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 19th, 2003, 04:05 AM
Authorized User
 
Join Date: Aug 2003
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Write a vb program as services

Can I write program which can be acted as a services
in the W2k Server.

Thanks a lot.


  #2 (permalink)  
Old September 19th, 2003, 08:00 AM
Friend of Wrox
 
Join Date: Aug 2003
Location: , , .
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah the age old frustration of VB6 programmers!

Yes, you can build a Win2K service. You need to download the NTSVC.ocx from microsoft or use the RunAsService service to kick off your program. HOWEVER, I don't recommend it. VB6 services tend to leak memory and require frequent reboots. What is more they don't integrate with MAPI well (though recently I have found it can be done). If you really want to build a win2K service, go to VB.Net. It has special libraries for it.

Yehuda


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I write this vb 6 code to work in vb 2008? sanderson Visual Basic 2008 Essentials 3 June 10th, 2008 01:46 PM
Call VB exe in another vb program Swati Chari BOOK: ASP.NET Website Programming Problem-Design-Solution 1 March 14th, 2008 11:43 AM
program won't write to file CNewbie Visual C++ 1 December 7th, 2004 06:20 PM
How to write program tht will run every day at 9 pallavijyo Pro VB Databases 1 December 3rd, 2004 06:45 PM
Write a program to produce a contents page eapsokha Java GUI 1 September 7th, 2004 11:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.