DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 49

Thread: GetProcAddress and usage in VB question ?

  1. #31
    René Whitworth Guest

    Re: GetProcAddress and usage in VB question ?

    The only thing Peter sayd is no native way for is to EXPORT functions from
    within a DLL, not to call them by pointer.

    --
    Hope this helps ...

    Rene Whitworth
    Whitworth Software Solutions - Germany
    http://www.w-s-s.de
    Please reply to the newsgroup :-)


    "Michael (michka) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com>
    schrieb im Newsbeitrag news:393c8700$1@news.devx.com...
    > My point is that the claim was made in your posting that there WAS no

    native
    > way to do this.
    >
    >
    > --
    > 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/
    >
    > "Michael Culley" <m_culley@one.net.au> wrote in message
    > news:393c7fbc$1@news.devx.com...
    > >
    > > Oops,
    > >
    > > The other type of function I was thinking of was declspec. What I meant

    to
    > > say was that it will do stdCall functions in Dlls and VB, and declspecs

    in
    > > dlls.
    > >
    > > Michael Culley
    > >
    > > "Michael Culley" <m_culley@one.net.au> wrote:
    > > >
    > > >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. #32
    Michael \(michka\) Kaplan Guest

    Re: GetProcAddress and usage in VB question ?

    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. #33
    Michael \(michka\) Kaplan Guest

    Re: GetProcAddress and usage in VB question ?

    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. #34
    Eduardo A. Morcillo Guest

    Re: GetProcAddress and usage in VB question ?

    > 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.


    You can make add-ins using objects. Check the vb.oop group, there were some
    discussions about add-ins on that group.


    --
    Eduardo A. Morcillo
    http://www.domaindlx.com/e_morcillo



  5. #35
    Eduardo A. Morcillo Guest

    Re: GetProcAddress and usage in VB question ?

    > 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.


    You can make add-ins using objects. Check the vb.oop group, there were some
    discussions about add-ins on that group.


    --
    Eduardo A. Morcillo
    http://www.domaindlx.com/e_morcillo



  6. #36
    Geoff (CADS) Guest

    Re: GetProcAddress and usage in VB question ?

    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
    > > > >> >
    > > > >> >
    > > > >> >
    > > > >>
    > > > >>
    > > > >
    > > > >
    > > >

    > >
    > >

    >
    >




  7. #37
    Geoff (CADS) Guest

    Re: GetProcAddress and usage in VB question ?

    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
    > > > >> >
    > > > >> >
    > > > >> >
    > > > >>
    > > > >>
    > > > >
    > > > >
    > > >

    > >
    > >

    >
    >




  8. #38
    Geoff (CADS) Guest

    Re: GetProcAddress and usage in VB question ?

    excellent ideas there too
    thanks

    Eduardo A. Morcillo <e_morcillo@yahoo.com> wrote in message
    news:393cefb1@news.devx.com...
    > > 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.

    >
    > You can make add-ins using objects. Check the vb.oop group, there were

    some
    > discussions about add-ins on that group.
    >
    >
    > --
    > Eduardo A. Morcillo
    > http://www.domaindlx.com/e_morcillo
    >
    >




  9. #39
    Geoff (CADS) Guest

    Re: GetProcAddress and usage in VB question ?

    excellent ideas there too
    thanks

    Eduardo A. Morcillo <e_morcillo@yahoo.com> wrote in message
    news:393cefb1@news.devx.com...
    > > 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.

    >
    > You can make add-ins using objects. Check the vb.oop group, there were

    some
    > discussions about add-ins on that group.
    >
    >
    > --
    > Eduardo A. Morcillo
    > http://www.domaindlx.com/e_morcillo
    >
    >




  10. #40
    Michael \(michka\) Kaplan Guest

    Re: GetProcAddress and usage in VB question ?

    Sorry, I thought you were talking to me (slinks away now).

    --
    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:393d18d9@news.devx.com...
    > 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
    > > > > >> >
    > > > > >> >
    > > > > >> >
    > > > > >>
    > > > > >>
    > > > > >
    > > > > >
    > > > >
    > > >
    > > >

    > >
    > >

    >
    >




  11. #41
    Michael \(michka\) Kaplan Guest

    Re: GetProcAddress and usage in VB question ?

    Sorry, I thought you were talking to me (slinks away now).

    --
    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:393d18d9@news.devx.com...
    > 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
    > > > > >> >
    > > > > >> >
    > > > > >> >
    > > > > >>
    > > > > >>
    > > > > >
    > > > > >
    > > > >
    > > >
    > > >

    > >
    > >

    >
    >




  12. #42
    Michael Culley Guest

    Re: GetProcAddress and usage in VB question ?


    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
    >> > > >> >
    >> > > >> >
    >> > > >> >
    >> > > >>
    >> > > >>
    >> > > >
    >> > > >
    >> > >
    >> >
    >> >

    >>
    >>

    >
    >



  13. #43
    Michael Culley Guest

    Re: GetProcAddress and usage in VB question ?


    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
    >> > > >> >
    >> > > >> >
    >> > > >> >
    >> > > >>
    >> > > >>
    >> > > >
    >> > > >
    >> > >
    >> >
    >> >

    >>
    >>

    >
    >



  14. #44
    René Whitworth Guest

    Re: GetProcAddress and usage in VB question ?

    Could you supply us with the site address please ?

    --
    Rene Whitworth
    Whitworth Software Solutions - Germany
    http://www.w-s-s.de
    Please reply to the newsgroup :-)


    "Michael Culley" <m_culley@one.net.au> schrieb im Newsbeitrag
    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
    > >> >
    > >> >
    > >> >
    > >>
    > >>

    > >
    > >

    >




  15. #45
    René Whitworth Guest

    Re: GetProcAddress and usage in VB question ?

    Could you supply us with the site address please ?

    --
    Rene Whitworth
    Whitworth Software Solutions - Germany
    http://www.w-s-s.de
    Please reply to the newsgroup :-)


    "Michael Culley" <m_culley@one.net.au> schrieb im Newsbeitrag
    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