Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9519
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Use of COM in Windows Service |
| Date | Thu, 7 Jul 2016 20:25:14 +0200 |
| Lines | 55 |
| Message-ID | <du7l4eFdjubU1@mid.individual.net> (permalink) |
| References | <du4dvvFk216U1@mid.individual.net> <igosnb57mnrgv2avtek6g30ks0bovc7sbj@4ax.com> |
| X-Trace | individual.net ZUMNCi+hdTePrzeWPxxjFQO8OsOwBOeOScLReTFLpACRwoInw= |
| Cancel-Lock | sha1:eQAGH48CsV1xRYLLVqJ95CMtJV8= |
| User-Agent | XanaNews/1.18.1.6 |
| Xref | csiph.com comp.lang.clipper.visual-objects:9519 |
Show key headers only | View raw
Hi Dick, my service is written in VO (I love services - have several of them running - return to the batch processes on the Nixdorf mainframe where I learned programming). I have now tried two different COM automation servers with this service, the one probably written in C++, and the other one written in X# by myself. The first one was tried with the registered DLL (regsvr32) and with SxS, the second one only SxS. Both run when the program is running in Console mode, but, when the service tries to load the COM server DLL, it gives an error about the COM server not correctly loaded. Service and console program are started on the sema machine from the same directory.... Wolfgang D.J.W. van Kooten wrote: > Replying on message of Wed, 6 Jul 2016 15:05:01 +0200 from Wolfgang > Riedmann: > > > Hello Wolfgang, > > > I'm trying to use a COM dll in a Windows service, but unfortunately > > this does not seem to work (I'm loading in SxS mode, but tried also > > registering the COM DLL). > > > > The first DLL I've tried was the OleXlsf.dll to create XLS files, > > and the second one was a self created DLL using X# and the > > excellent EPPlus DLL for reading and writing xlsx files. > > > > Just to get the picture. You are able to run a service but as soon as > it should something from the DLL, it simply doesn't do it. Correct? > > Is the service written in C#? > > I am also investigating to make a service because Windows Task > Scheduler doesn't work to run my programs. We've tried an alternative > scheduler, which works, but requires a RD connection to never logout > (otherwise the scheduler stops working too). I wonder if I can get it > working via a process (it did in the Task Scheduler of Server 2003) > and maybe I can help you too with your problem. > > Dick > > --- news://freenews.netfront.net/ - complaints: news@netfront.net --- --
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
Use of COM in Windows Service "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-07-06 15:05 +0200
Re: Use of COM in Windows Service D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2016-07-07 16:11 +0200
Re: Use of COM in Windows Service "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-07-07 20:25 +0200
csiph-web