DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 4 of 4 FirstFirst ... 234
Results 46 to 49 of 49

Thread: GetProcAddress and usage in VB question ?

  1. #46
    Michael Culley Guest

    Re: GetProcAddress and usage in VB question ?


    And also, why would I advertise that I was going to do this on the Dev-X site
    (which VBPJ is part of)??????

    If you want the article just join. Its $3.95 a month and you can read everything
    back to 91 or thereabouts. $3.95 - thats the price of a hamburger! mmmmmmmmm
    Hamburger, gotta go.....

    Michael Culley

    "Michael Culley" <m_culley@one.net.au> wrote:
    >
    >I was talking about my example, not Matt Curlands. Why would I post someone
    >else's example on my website????
    >
    >"Geoff (CADS)" <geoff@cads.co.uk> wrote:
    >>well, excuse me! this sounded like an invitation
    >>
    >>> > > Its not on my web site at the moment, but I will put it up tonight.
    >>> > Otherwise
    >>> > > email me.
    >>> > >
    >>> > > Michael Culley

    >>
    >>
    >>
    >>Michael (michka) Kaplan <former_mvp@spamfree.trigeminal.nospam.com> wrote

    >in
    >>message news:393cf185@news.devx.com...
    >>> Is there any chance that I would redistribute to you a copyrighted article
    >>> and thus violate international copyright law, just because you cannot

    >go
    >>to
    >>> a web site (http://www.vbpj.com/)?
    >>>
    >>> You will forgive me if I choose to let the answer be self-explanatory

    >>here.
    >>>
    >>> Oh, the **** with it. I will answer. **** no.
    >>>
    >>> --
    >>> MichKa
    >>> "Cause it's a bittersweet symphony, thats life..." -- The Verve
    >>>
    >>> random junk of dubious value, at the multilingual,
    >>> no scripts required, http://www.trigeminal.com/
    >>>
    >>> "Geoff (CADS)" <geoff@cads.co.uk> wrote in message
    >>> news:393cd063@news.devx.com...
    >>> > Any chance of posting this as I don't have access to the VBPJ site

    ?
    >>> > Thanks
    >>> >
    >>> > Geoff
    >>> >
    >>> >
    >>> > Michael Culley <m_culley@one.net.au> wrote in message
    >>> > news:393c67db$1@news.devx.com...
    >>> > >
    >>> > > Mickha,
    >>> > >
    >>> > > If it is the article I am thinking about (and I'm pretty sure it

    is),
    >>my
    >>> > > solution and matts solution where completely different. I don't think
    >>> you
    >>> > > have seen both solutions.
    >>> > >
    >>> > > I have extended the code that I originally wrote. It will now call
    >>> > declspec's
    >>> > > in dll's and in VB, COM functions and subs and those other types

    of
    >>> > functions
    >>> > > that I can't remember the name of. It can use any parameters (AFAIK).
    >>> It's
    >>> > > still the same basic idea.
    >>> > >
    >>> > > Its not on my web site at the moment, but I will put it up tonight.
    >>> > Otherwise
    >>> > > email me.
    >>> > >
    >>> > > Michael Culley
    >>> > >
    >>> > > "Michael \(michka\) Kaplan"

    >><former_mvp@spamfree.trigeminal.nospam.com>
    >>> > wrote:
    >>> > > >Actually, you are very wrong. Matt Curland wrote up a method for

    >>doing
    >>> > this
    >>> > > >NATIVELY earlier this year in VBPJ. I believe in the February 2000
    >>> issue?
    >>> > > >
    >>> > > >--
    >>> > > >MichKa
    >>> > > >"Cause it's a bittersweet symphony, thats life..." -- The Verve
    >>> > > >
    >>> > > >random junk of dubious value, at the multilingual,
    >>> > > >no scripts required, http://www.trigeminal.com/
    >>> > > >
    >>> > > >"Peter Young" <pyoung@mr.net> wrote in message
    >>> > > >news:393bc754@news.devx.com...
    >>> > > >> Geoff,
    >>> > > >>
    >>> > > >> > Part 1 - How do I create a DLL from Visual Basic that exports
    >>> > functions
    >>> > > >> (as
    >>> > > >> > C++ does with __stdcall) ?
    >>> > > >>
    >>> > > >> While you can't do this natively in VB, Desaware's SpyWorks package
    >>> has
    >>> > > a
    >>> > > >> tool that will get you there. www.desaware.com
    >>> > > >>
    >>> > > >> > Part 2 - I can load a DLL into VB using LoadLibrary, and I can

    >>get
    >>> > the
    >>> > > >> > pointer to the function I want to
    >>> > > >> > call, but how do I use it ?
    >>> > > >>
    >>> > > >> A guy by the name of Michael Culley wrote a slick little routine

    >to
    >>> do
    >>> > > >this.
    >>> > > >> The only place I've found it is in a module available at
    >>> > > >> http://www.w-s-s.de/ Look for InstallOCX.bas.
    >>> > > >>
    >>> > > >> I've used both of these with success.
    >>> > > >>
    >>> > > >> HTH,
    >>> > > >>
    >>> > > >> Peter Young
    >>> > > >>
    >>> > > >> Geoff (CADS) <geoff@cads.co.uk> wrote in message
    >>> > > >> news:393bbaf3$1@news.devx.com...
    >>> > > >> > Two parts to the question really.
    >>> > > >> > Part 1 - How do I create a DLL from Visual Basic that exports
    >>> > functions
    >>> > > >> (as
    >>> > > >> > C++ does with __stdcall) ?
    >>> > > >> > I don't think it's possible from what I've read in MSDN, as

    VB
    >>only
    >>> > > >seems
    >>> > > >> to
    >>> > > >> > create COM DLL's.
    >>> > > >> >
    >>> > > >> > Part 2 - I can load a DLL into VB using LoadLibrary, and I can

    >>get
    >>> > the
    >>> > > >> > pointer to the function I want to
    >>> > > >> > call, but how do I use it ?
    >>> > > >> >
    >>> > > >> > The reason for using LoadLibrary is that I'm writing a system

    >>that
    >>> > uses
    >>> > > >> DLLs
    >>> > > >> > as plug-ins that can be
    >>> > > >> > written by third parties (hence I can't Declare them).
    >>> > > >> > The calling convention and parameters will always be the same.
    >>> > > >> >
    >>> > > >> > ANY help greatly appreciated
    >>> > > >> >
    >>> > > >> > Geoff
    >>> > > >> >
    >>> > > >> >
    >>> > > >> >
    >>> > > >>
    >>> > > >>
    >>> > > >
    >>> > > >
    >>> > >
    >>> >
    >>> >
    >>>
    >>>

    >>
    >>

    >



  2. #47
    Michael Culley Guest

    Re: GetProcAddress and usage in VB question ?


    And also, why would I advertise that I was going to do this on the Dev-X site
    (which VBPJ is part of)??????

    If you want the article just join. Its $3.95 a month and you can read everything
    back to 91 or thereabouts. $3.95 - thats the price of a hamburger! mmmmmmmmm
    Hamburger, gotta go.....

    Michael Culley

    "Michael Culley" <m_culley@one.net.au> wrote:
    >
    >I was talking about my example, not Matt Curlands. Why would I post someone
    >else's example on my website????
    >
    >"Geoff (CADS)" <geoff@cads.co.uk> wrote:
    >>well, excuse me! this sounded like an invitation
    >>
    >>> > > Its not on my web site at the moment, but I will put it up tonight.
    >>> > Otherwise
    >>> > > email me.
    >>> > >
    >>> > > Michael Culley

    >>
    >>
    >>
    >>Michael (michka) Kaplan <former_mvp@spamfree.trigeminal.nospam.com> wrote

    >in
    >>message news:393cf185@news.devx.com...
    >>> Is there any chance that I would redistribute to you a copyrighted article
    >>> and thus violate international copyright law, just because you cannot

    >go
    >>to
    >>> a web site (http://www.vbpj.com/)?
    >>>
    >>> You will forgive me if I choose to let the answer be self-explanatory

    >>here.
    >>>
    >>> Oh, the **** with it. I will answer. **** no.
    >>>
    >>> --
    >>> MichKa
    >>> "Cause it's a bittersweet symphony, thats life..." -- The Verve
    >>>
    >>> random junk of dubious value, at the multilingual,
    >>> no scripts required, http://www.trigeminal.com/
    >>>
    >>> "Geoff (CADS)" <geoff@cads.co.uk> wrote in message
    >>> news:393cd063@news.devx.com...
    >>> > Any chance of posting this as I don't have access to the VBPJ site

    ?
    >>> > Thanks
    >>> >
    >>> > Geoff
    >>> >
    >>> >
    >>> > Michael Culley <m_culley@one.net.au> wrote in message
    >>> > news:393c67db$1@news.devx.com...
    >>> > >
    >>> > > Mickha,
    >>> > >
    >>> > > If it is the article I am thinking about (and I'm pretty sure it

    is),
    >>my
    >>> > > solution and matts solution where completely different. I don't think
    >>> you
    >>> > > have seen both solutions.
    >>> > >
    >>> > > I have extended the code that I originally wrote. It will now call
    >>> > declspec's
    >>> > > in dll's and in VB, COM functions and subs and those other types

    of
    >>> > functions
    >>> > > that I can't remember the name of. It can use any parameters (AFAIK).
    >>> It's
    >>> > > still the same basic idea.
    >>> > >
    >>> > > Its not on my web site at the moment, but I will put it up tonight.
    >>> > Otherwise
    >>> > > email me.
    >>> > >
    >>> > > Michael Culley
    >>> > >
    >>> > > "Michael \(michka\) Kaplan"

    >><former_mvp@spamfree.trigeminal.nospam.com>
    >>> > wrote:
    >>> > > >Actually, you are very wrong. Matt Curland wrote up a method for

    >>doing
    >>> > this
    >>> > > >NATIVELY earlier this year in VBPJ. I believe in the February 2000
    >>> issue?
    >>> > > >
    >>> > > >--
    >>> > > >MichKa
    >>> > > >"Cause it's a bittersweet symphony, thats life..." -- The Verve
    >>> > > >
    >>> > > >random junk of dubious value, at the multilingual,
    >>> > > >no scripts required, http://www.trigeminal.com/
    >>> > > >
    >>> > > >"Peter Young" <pyoung@mr.net> wrote in message
    >>> > > >news:393bc754@news.devx.com...
    >>> > > >> Geoff,
    >>> > > >>
    >>> > > >> > Part 1 - How do I create a DLL from Visual Basic that exports
    >>> > functions
    >>> > > >> (as
    >>> > > >> > C++ does with __stdcall) ?
    >>> > > >>
    >>> > > >> While you can't do this natively in VB, Desaware's SpyWorks package
    >>> has
    >>> > > a
    >>> > > >> tool that will get you there. www.desaware.com
    >>> > > >>
    >>> > > >> > Part 2 - I can load a DLL into VB using LoadLibrary, and I can

    >>get
    >>> > the
    >>> > > >> > pointer to the function I want to
    >>> > > >> > call, but how do I use it ?
    >>> > > >>
    >>> > > >> A guy by the name of Michael Culley wrote a slick little routine

    >to
    >>> do
    >>> > > >this.
    >>> > > >> The only place I've found it is in a module available at
    >>> > > >> http://www.w-s-s.de/ Look for InstallOCX.bas.
    >>> > > >>
    >>> > > >> I've used both of these with success.
    >>> > > >>
    >>> > > >> HTH,
    >>> > > >>
    >>> > > >> Peter Young
    >>> > > >>
    >>> > > >> Geoff (CADS) <geoff@cads.co.uk> wrote in message
    >>> > > >> news:393bbaf3$1@news.devx.com...
    >>> > > >> > Two parts to the question really.
    >>> > > >> > Part 1 - How do I create a DLL from Visual Basic that exports
    >>> > functions
    >>> > > >> (as
    >>> > > >> > C++ does with __stdcall) ?
    >>> > > >> > I don't think it's possible from what I've read in MSDN, as

    VB
    >>only
    >>> > > >seems
    >>> > > >> to
    >>> > > >> > create COM DLL's.
    >>> > > >> >
    >>> > > >> > Part 2 - I can load a DLL into VB using LoadLibrary, and I can

    >>get
    >>> > the
    >>> > > >> > pointer to the function I want to
    >>> > > >> > call, but how do I use it ?
    >>> > > >> >
    >>> > > >> > The reason for using LoadLibrary is that I'm writing a system

    >>that
    >>> > uses
    >>> > > >> DLLs
    >>> > > >> > as plug-ins that can be
    >>> > > >> > written by third parties (hence I can't Declare them).
    >>> > > >> > The calling convention and parameters will always be the same.
    >>> > > >> >
    >>> > > >> > ANY help greatly appreciated
    >>> > > >> >
    >>> > > >> > Geoff
    >>> > > >> >
    >>> > > >> >
    >>> > > >> >
    >>> > > >>
    >>> > > >>
    >>> > > >
    >>> > > >
    >>> > >
    >>> >
    >>> >
    >>>
    >>>

    >>
    >>

    >



  3. #48
    Geoff (CADS) Guest

    Re: GetProcAddress and usage in VB question ?

    my misunderstanding

    Michael Culley <m_culley@one.net.au> wrote in message
    news:393f6c0f@news.devx.com...
    >
    > And also, why would I advertise that I was going to do this on the Dev-X

    site
    > (which VBPJ is part of)??????
    >
    > If you want the article just join. Its $3.95 a month and you can read

    everything
    > back to 91 or thereabouts. $3.95 - thats the price of a hamburger!

    mmmmmmmmm
    > Hamburger, gotta go.....
    >
    > Michael Culley
    >
    > "Michael Culley" <m_culley@one.net.au> wrote:
    > >
    > >I was talking about my example, not Matt Curlands. Why would I post

    someone
    > >else's example on my website????
    > >
    > >"Geoff (CADS)" <geoff@cads.co.uk> wrote:
    > >>well, excuse me! this sounded like an invitation
    > >>
    > >>> > > Its not on my web site at the moment, but I will put it up

    tonight.
    > >>> > Otherwise
    > >>> > > email me.
    > >>> > >
    > >>> > > Michael Culley
    > >>
    > >>
    > >>
    > >>Michael (michka) Kaplan <former_mvp@spamfree.trigeminal.nospam.com>

    wrote
    > >in
    > >>message news:393cf185@news.devx.com...
    > >>> Is there any chance that I would redistribute to you a copyrighted

    article
    > >>> and thus violate international copyright law, just because you cannot

    > >go
    > >>to
    > >>> a web site (http://www.vbpj.com/)?
    > >>>
    > >>> You will forgive me if I choose to let the answer be self-explanatory
    > >>here.
    > >>>
    > >>> Oh, the **** with it. I will answer. **** no.
    > >>>
    > >>> --
    > >>> MichKa
    > >>> "Cause it's a bittersweet symphony, thats life..." -- The Verve
    > >>>
    > >>> random junk of dubious value, at the multilingual,
    > >>> no scripts required, http://www.trigeminal.com/
    > >>>
    > >>> "Geoff (CADS)" <geoff@cads.co.uk> wrote in message
    > >>> news:393cd063@news.devx.com...
    > >>> > Any chance of posting this as I don't have access to the VBPJ site

    > ?
    > >>> > Thanks
    > >>> >
    > >>> > Geoff
    > >>> >
    > >>> >
    > >>> > Michael Culley <m_culley@one.net.au> wrote in message
    > >>> > news:393c67db$1@news.devx.com...
    > >>> > >
    > >>> > > Mickha,
    > >>> > >
    > >>> > > If it is the article I am thinking about (and I'm pretty sure it

    > is),
    > >>my
    > >>> > > solution and matts solution where completely different. I don't

    think
    > >>> you
    > >>> > > have seen both solutions.
    > >>> > >
    > >>> > > I have extended the code that I originally wrote. It will now call
    > >>> > declspec's
    > >>> > > in dll's and in VB, COM functions and subs and those other types

    > of
    > >>> > functions
    > >>> > > that I can't remember the name of. It can use any parameters

    (AFAIK).
    > >>> It's
    > >>> > > still the same basic idea.
    > >>> > >
    > >>> > > Its not on my web site at the moment, but I will put it up

    tonight.
    > >>> > Otherwise
    > >>> > > email me.
    > >>> > >
    > >>> > > Michael Culley
    > >>> > >
    > >>> > > "Michael \(michka\) Kaplan"
    > >><former_mvp@spamfree.trigeminal.nospam.com>
    > >>> > wrote:
    > >>> > > >Actually, you are very wrong. Matt Curland wrote up a method for
    > >>doing
    > >>> > this
    > >>> > > >NATIVELY earlier this year in VBPJ. I believe in the February

    2000
    > >>> issue?
    > >>> > > >
    > >>> > > >--
    > >>> > > >MichKa
    > >>> > > >"Cause it's a bittersweet symphony, thats life..." -- The Verve
    > >>> > > >
    > >>> > > >random junk of dubious value, at the multilingual,
    > >>> > > >no scripts required, http://www.trigeminal.com/
    > >>> > > >
    > >>> > > >"Peter Young" <pyoung@mr.net> wrote in message
    > >>> > > >news:393bc754@news.devx.com...
    > >>> > > >> Geoff,
    > >>> > > >>
    > >>> > > >> > Part 1 - How do I create a DLL from Visual Basic that exports
    > >>> > functions
    > >>> > > >> (as
    > >>> > > >> > C++ does with __stdcall) ?
    > >>> > > >>
    > >>> > > >> While you can't do this natively in VB, Desaware's SpyWorks

    package
    > >>> has
    > >>> > > a
    > >>> > > >> tool that will get you there. www.desaware.com
    > >>> > > >>
    > >>> > > >> > Part 2 - I can load a DLL into VB using LoadLibrary, and I

    can
    > >>get
    > >>> > the
    > >>> > > >> > pointer to the function I want to
    > >>> > > >> > call, but how do I use it ?
    > >>> > > >>
    > >>> > > >> A guy by the name of Michael Culley wrote a slick little

    routine
    > >to
    > >>> do
    > >>> > > >this.
    > >>> > > >> The only place I've found it is in a module available at
    > >>> > > >> http://www.w-s-s.de/ Look for InstallOCX.bas.
    > >>> > > >>
    > >>> > > >> I've used both of these with success.
    > >>> > > >>
    > >>> > > >> HTH,
    > >>> > > >>
    > >>> > > >> Peter Young
    > >>> > > >>
    > >>> > > >> Geoff (CADS) <geoff@cads.co.uk> wrote in message
    > >>> > > >> news:393bbaf3$1@news.devx.com...
    > >>> > > >> > Two parts to the question really.
    > >>> > > >> > Part 1 - How do I create a DLL from Visual Basic that exports
    > >>> > functions
    > >>> > > >> (as
    > >>> > > >> > C++ does with __stdcall) ?
    > >>> > > >> > I don't think it's possible from what I've read in MSDN, as

    > VB
    > >>only
    > >>> > > >seems
    > >>> > > >> to
    > >>> > > >> > create COM DLL's.
    > >>> > > >> >
    > >>> > > >> > Part 2 - I can load a DLL into VB using LoadLibrary, and I

    can
    > >>get
    > >>> > the
    > >>> > > >> > pointer to the function I want to
    > >>> > > >> > call, but how do I use it ?
    > >>> > > >> >
    > >>> > > >> > The reason for using LoadLibrary is that I'm writing a system
    > >>that
    > >>> > uses
    > >>> > > >> DLLs
    > >>> > > >> > as plug-ins that can be
    > >>> > > >> > written by third parties (hence I can't Declare them).
    > >>> > > >> > The calling convention and parameters will always be the

    same.
    > >>> > > >> >
    > >>> > > >> > ANY help greatly appreciated
    > >>> > > >> >
    > >>> > > >> > Geoff
    > >>> > > >> >
    > >>> > > >> >
    > >>> > > >> >
    > >>> > > >>
    > >>> > > >>
    > >>> > > >
    > >>> > > >
    > >>> > >
    > >>> >
    > >>> >
    > >>>
    > >>>
    > >>
    > >>

    > >

    >




  4. #49
    Geoff (CADS) Guest

    Re: GetProcAddress and usage in VB question ?

    my misunderstanding

    Michael Culley <m_culley@one.net.au> wrote in message
    news:393f6c0f@news.devx.com...
    >
    > And also, why would I advertise that I was going to do this on the Dev-X

    site
    > (which VBPJ is part of)??????
    >
    > If you want the article just join. Its $3.95 a month and you can read

    everything
    > back to 91 or thereabouts. $3.95 - thats the price of a hamburger!

    mmmmmmmmm
    > Hamburger, gotta go.....
    >
    > Michael Culley
    >
    > "Michael Culley" <m_culley@one.net.au> wrote:
    > >
    > >I was talking about my example, not Matt Curlands. Why would I post

    someone
    > >else's example on my website????
    > >
    > >"Geoff (CADS)" <geoff@cads.co.uk> wrote:
    > >>well, excuse me! this sounded like an invitation
    > >>
    > >>> > > Its not on my web site at the moment, but I will put it up

    tonight.
    > >>> > Otherwise
    > >>> > > email me.
    > >>> > >
    > >>> > > Michael Culley
    > >>
    > >>
    > >>
    > >>Michael (michka) Kaplan <former_mvp@spamfree.trigeminal.nospam.com>

    wrote
    > >in
    > >>message news:393cf185@news.devx.com...
    > >>> Is there any chance that I would redistribute to you a copyrighted

    article
    > >>> and thus violate international copyright law, just because you cannot

    > >go
    > >>to
    > >>> a web site (http://www.vbpj.com/)?
    > >>>
    > >>> You will forgive me if I choose to let the answer be self-explanatory
    > >>here.
    > >>>
    > >>> Oh, the **** with it. I will answer. **** no.
    > >>>
    > >>> --
    > >>> MichKa
    > >>> "Cause it's a bittersweet symphony, thats life..." -- The Verve
    > >>>
    > >>> random junk of dubious value, at the multilingual,
    > >>> no scripts required, http://www.trigeminal.com/
    > >>>
    > >>> "Geoff (CADS)" <geoff@cads.co.uk> wrote in message
    > >>> news:393cd063@news.devx.com...
    > >>> > Any chance of posting this as I don't have access to the VBPJ site

    > ?
    > >>> > Thanks
    > >>> >
    > >>> > Geoff
    > >>> >
    > >>> >
    > >>> > Michael Culley <m_culley@one.net.au> wrote in message
    > >>> > news:393c67db$1@news.devx.com...
    > >>> > >
    > >>> > > Mickha,
    > >>> > >
    > >>> > > If it is the article I am thinking about (and I'm pretty sure it

    > is),
    > >>my
    > >>> > > solution and matts solution where completely different. I don't

    think
    > >>> you
    > >>> > > have seen both solutions.
    > >>> > >
    > >>> > > I have extended the code that I originally wrote. It will now call
    > >>> > declspec's
    > >>> > > in dll's and in VB, COM functions and subs and those other types

    > of
    > >>> > functions
    > >>> > > that I can't remember the name of. It can use any parameters

    (AFAIK).
    > >>> It's
    > >>> > > still the same basic idea.
    > >>> > >
    > >>> > > Its not on my web site at the moment, but I will put it up

    tonight.
    > >>> > Otherwise
    > >>> > > email me.
    > >>> > >
    > >>> > > Michael Culley
    > >>> > >
    > >>> > > "Michael \(michka\) Kaplan"
    > >><former_mvp@spamfree.trigeminal.nospam.com>
    > >>> > wrote:
    > >>> > > >Actually, you are very wrong. Matt Curland wrote up a method for
    > >>doing
    > >>> > this
    > >>> > > >NATIVELY earlier this year in VBPJ. I believe in the February

    2000
    > >>> issue?
    > >>> > > >
    > >>> > > >--
    > >>> > > >MichKa
    > >>> > > >"Cause it's a bittersweet symphony, thats life..." -- The Verve
    > >>> > > >
    > >>> > > >random junk of dubious value, at the multilingual,
    > >>> > > >no scripts required, http://www.trigeminal.com/
    > >>> > > >
    > >>> > > >"Peter Young" <pyoung@mr.net> wrote in message
    > >>> > > >news:393bc754@news.devx.com...
    > >>> > > >> Geoff,
    > >>> > > >>
    > >>> > > >> > Part 1 - How do I create a DLL from Visual Basic that exports
    > >>> > functions
    > >>> > > >> (as
    > >>> > > >> > C++ does with __stdcall) ?
    > >>> > > >>
    > >>> > > >> While you can't do this natively in VB, Desaware's SpyWorks

    package
    > >>> has
    > >>> > > a
    > >>> > > >> tool that will get you there. www.desaware.com
    > >>> > > >>
    > >>> > > >> > Part 2 - I can load a DLL into VB using LoadLibrary, and I

    can
    > >>get
    > >>> > the
    > >>> > > >> > pointer to the function I want to
    > >>> > > >> > call, but how do I use it ?
    > >>> > > >>
    > >>> > > >> A guy by the name of Michael Culley wrote a slick little

    routine
    > >to
    > >>> do
    > >>> > > >this.
    > >>> > > >> The only place I've found it is in a module available at
    > >>> > > >> http://www.w-s-s.de/ Look for InstallOCX.bas.
    > >>> > > >>
    > >>> > > >> I've used both of these with success.
    > >>> > > >>
    > >>> > > >> HTH,
    > >>> > > >>
    > >>> > > >> Peter Young
    > >>> > > >>
    > >>> > > >> Geoff (CADS) <geoff@cads.co.uk> wrote in message
    > >>> > > >> news:393bbaf3$1@news.devx.com...
    > >>> > > >> > Two parts to the question really.
    > >>> > > >> > Part 1 - How do I create a DLL from Visual Basic that exports
    > >>> > functions
    > >>> > > >> (as
    > >>> > > >> > C++ does with __stdcall) ?
    > >>> > > >> > I don't think it's possible from what I've read in MSDN, as

    > VB
    > >>only
    > >>> > > >seems
    > >>> > > >> to
    > >>> > > >> > create COM DLL's.
    > >>> > > >> >
    > >>> > > >> > Part 2 - I can load a DLL into VB using LoadLibrary, and I

    can
    > >>get
    > >>> > the
    > >>> > > >> > pointer to the function I want to
    > >>> > > >> > call, but how do I use it ?
    > >>> > > >> >
    > >>> > > >> > The reason for using LoadLibrary is that I'm writing a system
    > >>that
    > >>> > uses
    > >>> > > >> DLLs
    > >>> > > >> > as plug-ins that can be
    > >>> > > >> > written by third parties (hence I can't Declare them).
    > >>> > > >> > The calling convention and parameters will always be the

    same.
    > >>> > > >> >
    > >>> > > >> > ANY help greatly appreciated
    > >>> > > >> >
    > >>> > > >> > Geoff
    > >>> > > >> >
    > >>> > > >> >
    > >>> > > >> >
    > >>> > > >>
    > >>> > > >>
    > >>> > > >
    > >>> > > >
    > >>> > >
    > >>> >
    > >>> >
    > >>>
    > >>>
    > >>
    > >>

    > >

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center