Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #9514 > unrolled thread

Use of COM in Windows Service

Started by"Wolfgang Riedmann" <wriedmann@gmail.com>
First post2016-07-06 15:05 +0200
Last post2016-07-07 20:25 +0200
Articles 3 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#9514 — Use of COM in Windows Service

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2016-07-06 15:05 +0200
SubjectUse of COM in Windows Service
Message-ID<du4dvvFk216U1@mid.individual.net>
Hi,

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.

Has anyone a hint for me?

If not, I have to create a standalone exe and call that from the
service...

Wolfgang

-- 

[toc] | [next] | [standalone]


#9518

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2016-07-07 16:11 +0200
Message-ID<igosnb57mnrgv2avtek6g30ks0bovc7sbj@4ax.com>
In reply to#9514
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 ---

[toc] | [prev] | [next] | [standalone]


#9519

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2016-07-07 20:25 +0200
Message-ID<du7l4eFdjubU1@mid.individual.net>
In reply to#9518
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 ---



-- 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web