Visual Basic: how to use DLL

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

    Visual Basic: how to use DLL

    Hello,

    I am starting to program a demo for my DLL, but I cannot access the
    methods in Visual Basic.

    How can I do this? Do I have to import the dll somewhere?

    Thanks.
  • Rob Strover

    #2
    Re: Visual Basic: how to use DLL

    I presume this DLL is not an ActiveX DLL.

    In that case you'll need to declare each of the functions you want to use
    from that DLL - see Windows API examples as they show how a declare
    statement looks. Once that's done you can call the functions as if they
    were part of your VB code.

    If you are in fact talking about an ActiveX DLL, then you'll need to
    instantiate the relevant object ( COM) interfaces exposed by that DLL. Then
    you can set up the function calls as required.

    HTH

    Rob.

    "moonwulf" <mmoonwulff@yah oo.com> wrote in message
    news:19be48f3.0 310090203.70a4f dd6@posting.goo gle.com...[color=blue]
    > Hello,
    >
    > I am starting to program a demo for my DLL, but I cannot access the
    > methods in Visual Basic.
    >
    > How can I do this? Do I have to import the dll somewhere?
    >
    > Thanks.[/color]


    Comment

    • Alan

      #3
      Re: Visual Basic: how to use DLL

      Rob
      For us newbies .... Could you please translate that last paragraph into
      English.

      Thanks
      Alan


      "Rob Strover" <dislexic_wobma t@NOSPAMyahoo.c om.invalid> wrote in message
      news:u_xhb.1450 71$bo1.23226@ne ws-server.bigpond. net.au...[color=blue]
      > I presume this DLL is not an ActiveX DLL.
      >
      > In that case you'll need to declare each of the functions you want to use
      > from that DLL - see Windows API examples as they show how a declare
      > statement looks. Once that's done you can call the functions as if they
      > were part of your VB code.
      >
      > If you are in fact talking about an ActiveX DLL, then you'll need to
      > instantiate the relevant object ( COM) interfaces exposed by that DLL.[/color]
      Then[color=blue]
      > you can set up the function calls as required.
      >
      > HTH
      >
      > Rob.
      >
      > "moonwulf" <mmoonwulff@yah oo.com> wrote in message
      > news:19be48f3.0 310090203.70a4f dd6@posting.goo gle.com...[color=green]
      > > Hello,
      > >
      > > I am starting to program a demo for my DLL, but I cannot access the
      > > methods in Visual Basic.
      > >
      > > How can I do this? Do I have to import the dll somewhere?
      > >
      > > Thanks.[/color]
      >
      >[/color]


      ---
      Outgoing mail is certified virus free by AVG AntiVirus..
      Checked by AVG anti-virus system (http://www.grisoft.com).
      Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003


      Comment

      • Rob Strover

        #4
        Re: Visual Basic: how to use DLL

        Alan,

        I'd be glad to help. My apologies for the delay in getting back to you -
        it's been a very busy time for me.

        I'll post a response hopefully within the next couple of days - I hope this
        delay hasn't inconvenienced you too much.

        The challenge is to give you a useful answer without drowning you in too
        much detail :-)

        Rob.

        "Alan" <alan@nospam.ca > wrote in message
        news:MzHkb.4010 52$Lnr1.190263@ news01.bloor.is .net.cable.roge rs.com...[color=blue]
        > Rob
        > For us newbies .... Could you please translate that last paragraph[/color]
        into[color=blue]
        > English.
        >
        > Thanks
        > Alan
        >
        >
        > "Rob Strover" <dislexic_wobma t@NOSPAMyahoo.c om.invalid> wrote in message
        > news:u_xhb.1450 71$bo1.23226@ne ws-server.bigpond. net.au...[color=green]
        > > I presume this DLL is not an ActiveX DLL.
        > >
        > > In that case you'll need to declare each of the functions you want to[/color][/color]
        use[color=blue][color=green]
        > > from that DLL - see Windows API examples as they show how a declare
        > > statement looks. Once that's done you can call the functions as if they
        > > were part of your VB code.
        > >
        > > If you are in fact talking about an ActiveX DLL, then you'll need to
        > > instantiate the relevant object ( COM) interfaces exposed by that DLL.[/color]
        > Then[color=green]
        > > you can set up the function calls as required.
        > >
        > > HTH
        > >
        > > Rob.
        > >
        > > "moonwulf" <mmoonwulff@yah oo.com> wrote in message
        > > news:19be48f3.0 310090203.70a4f dd6@posting.goo gle.com...[color=darkred]
        > > > Hello,
        > > >
        > > > I am starting to program a demo for my DLL, but I cannot access the
        > > > methods in Visual Basic.
        > > >
        > > > How can I do this? Do I have to import the dll somewhere?
        > > >
        > > > Thanks.[/color]
        > >
        > >[/color]
        >
        >
        > ---
        > Outgoing mail is certified virus free by AVG AntiVirus..
        > Checked by AVG anti-virus system (http://www.grisoft.com).
        > Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
        >
        >[/color]


        Comment

        Working...