VB6 and COMInterop and Windows Services....

  • Thread starter Thread starter Pai
  • Start date Start date
P

Pai

Hello there,

I have a vb .dll file developed in version 6.0, I need it to run like
a windows service, the vb .dll file access a mail box and intimates
the user on reciving a mail and transfers the mail attachment to a
predefined location, i have used COD 1.2.1.

now when i use cominterop and import this in a simple vb.net windows
application it just works fine, but when i make it a windows service
it just hangs.

I tried it even with the smallest peice of code which just adds text
to a text file in a vb6 .dll filebut it works for 5-10 iterations but
then hangs....

has anybody used vb6 sucessfully as services using the interop
functunality:


'''' Code -------

Open "C:\EmailsFromSpecimens\Errordoc.txt" For Output As #2

Write #2, "Sucess"

Close #2

Thanks,
Srikanth Pai.
 
Pai,
What user account is the Windows Service running under?

Remember that a Windows Service cannot interact with the desktop, if you
happen to be displaying a dialog box or message box (login prompt) then you
will have problems.

What does your code example have to do with CDO 1.2.1?

Where is your code example?

Are you certain that you started the Service? Installed the Service?

Hope this helps
Jay
 
Back
Top