Importing Classes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff Turner

    Importing Classes

    Hi all,
    OK, I have a DLL program that contains a couple of classes. There are two
    things I would like to know:
    1: How do I export a class from a DLL
    2: How do I import the class into VB6?

    Note: The DLL in question is home-grown and written in VC++.

    Thanks for any help.
    GST


  • Steve Gerrard

    #2
    Re: Importing Classes


    "Geoff Turner" <g.s.turner@rl. ac.uk> wrote in message
    news:br9f8d$13f e@newton.cc.rl. ac.uk...[color=blue]
    > Hi all,
    > OK, I have a DLL program that contains a couple of classes. There are[/color]
    two[color=blue]
    > things I would like to know:
    > 1: How do I export a class from a DLL
    > 2: How do I import the class into VB6?
    >
    > Note: The DLL in question is home-grown and written in VC++.
    >
    > Thanks for any help.
    > GST
    >
    >[/color]
    For it to work in VB6, you have to make it an ActiveX Dll in VC++. I
    believe there are wizards and such for doing this in Visual Studio. I
    only did a few simple tutorial-type examples of this, so I don't much
    about the details, except that there are quite a few things you have to
    do to make it an ActiveX Dll.



    Comment

    Working...