Results 1 to 2 of 2

Thread: Very Urgent VB6 and COMInterop and Windows Services....

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    1

    Very Urgent VB6 and COMInterop and Windows Services....

    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.

  2. #2
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Don't think I'll be much help, but just a little information. First, this is a .NET forum - you may get better responses in a forum for VB6.

    VB6 was never intended to use to write Windows services. There is an unsupported tool supplied by Microsoft that makes it possible - sorry can't remember the name, you'll have to search - it wraps your executable - not sure if it'll work with a dll.

    Might be a good opportunity to go .NET - you can create services easily using VB.NET.

    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width