.NETGURU
Functionality of ActiveX EXE
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.vb.upgrade.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Chris Langston
Hello--

I've looked for the answer to this question everywhere I
can think of with no success, and I feel like I'm probably
missing something very simple.

I'm in the early stages of migrating quite a bit of code
from VB6 to VB.NET. In VB6, I was able to create an
ActiveX EXE server that would allow me to maintain
persistent object data, even during periods when no
clients were connected, using global variables in standard
VB modules.

I'm trying to duplicate that functionality in .NET. I
still need COM support for backward compatibiltiy of some
clients. Essentially, I'm looking for a way for a client
to create an object, make changes to soem shared data,
shut down, and then allow another client access to that
same shared data at a later time. Is there a way to do
this in .NET without writing the data out to disk?

Thanks for any insight.

--
Chris Langston

Reply to this message...
 
    
David Williams (VIP)
Personally, if I needed to do this, I would look at creating a Windows Service application. Then the clients would connect to the service via remoting. For the COM requirement, I would write a small COM enabled DLL that wrapped the remoting infrastructure to talk to the service.

The advantages to this model is that by having a service, you can set the service handler to restart the application if it errors for some reason, it is always running, and there is a defined interface to your background application.

HTH
--
David Williams, VB.NET MVP

"Chris Langston" wrote:

[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification