Design questions: VB6 COM with ASP.NET

Discussion in 'ASP .Net' started by sadams, Oct 22, 2004.

  1. sadams

    sadams Guest

    I recently undertook a project to convert a visual basic 6 application
    to an online asp.net application. The business logic of the visual
    basic 6 program was written into a DLL. Where the problem arises is
    the DLL in created in vb6 needs persist in memory as one object, just
    like it would be used on a stand alone vb6 client app. The DLL holds
    onto collections of data and other objects that are used again and
    again throughout the applications life. One design idea was to
    instantiate this DLL using late bounding and hold it in a session
    variable. I know this would be problematic though because I would
    then have a STA component in a multithreaded apartment environment.
    Another way would be to simply import/convert the vb6 code into my
    asp.net app, although version control between the two applications
    would be harder to maintain. Any thoughts would be appreciated.

    *-----------------------*
    Posted at:
    www.GroupSrv.com
    *-----------------------*
    sadams, Oct 22, 2004
    #1
    1. Advertising

  2. Save yourself a lot of trouble, and rewrite the OCM to a .Net assembly.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    I get paid good money to
    solve puzzles for a living

    "sadams" <-spam.invalid> wrote in message
    news:...
    > I recently undertook a project to convert a visual basic 6 application
    > to an online asp.net application. The business logic of the visual
    > basic 6 program was written into a DLL. Where the problem arises is
    > the DLL in created in vb6 needs persist in memory as one object, just
    > like it would be used on a stand alone vb6 client app. The DLL holds
    > onto collections of data and other objects that are used again and
    > again throughout the applications life. One design idea was to
    > instantiate this DLL using late bounding and hold it in a session
    > variable. I know this would be problematic though because I would
    > then have a STA component in a multithreaded apartment environment.
    > Another way would be to simply import/convert the vb6 code into my
    > asp.net app, although version control between the two applications
    > would be harder to maintain. Any thoughts would be appreciated.
    >
    > *-----------------------*
    > Posted at:
    > www.GroupSrv.com
    > *-----------------------*
    Kevin Spencer, Oct 22, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Carl Howarth

    ASP3/VB6 to ASP.NET/VB.NET

    Carl Howarth, Jul 8, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    400
    Steve C. Orr, MCSD
    Jul 8, 2003
  2. George Ter-Saakov

    Re: ASP.NET -> VB.NET -> VB6.0 DCOM

    George Ter-Saakov, Jun 2, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    630
    George Ter-Saakov
    Jun 3, 2004
  3. dotnetforfood
    Replies:
    18
    Views:
    709
    =?Utf-8?B?QWwtRmVlZA==?=
    Jul 2, 2004
  4. rg
    Replies:
    7
    Views:
    865
    RobinS
    Nov 22, 2006
  5. Ali Syed
    Replies:
    3
    Views:
    551
    Mark McIntyre
    Oct 13, 2004
Loading...

Share This Page