Calling Dll Function by Function Pointer


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Calling Dll Function by Function Pointer

  1. #1
    Sonia Kumar Guest

    Calling Dll Function by Function Pointer


    Hello all,

    I need to call the Functions of a Win32 dll (not a Com dll). For that I called
    the LoadLibrary API to load the dll into the process space of my application,
    and the GetProcAddress to get the address of the desired function. Now, how
    can I use this function pointer to call the function of the dll.

    Any help in this direction will be really helpful.

    Thanx

  2. #2
    Rob Teixeira Guest

    Re: Calling Dll Function by Function Pointer


    Look in the VB help documentation for the "Declare" keyword.

    -Rob

    "Sonia Kumar" <hshahid@itimpk.com> wrote:
    >
    >Hello all,
    >
    >I need to call the Functions of a Win32 dll (not a Com dll). For that I

    called
    >the LoadLibrary API to load the dll into the process space of my application,
    >and the GetProcAddress to get the address of the desired function. Now,

    how
    >can I use this function pointer to call the function of the dll.
    >
    >Any help in this direction will be really helpful.
    >
    >Thanx



  3. #3
    Rob Teixeira Guest

    Re: Calling Dll Function by Function Pointer


    Look in the VB help documentation for the "Declare" keyword.

    -Rob

    "Sonia Kumar" <hshahid@itimpk.com> wrote:
    >
    >Hello all,
    >
    >I need to call the Functions of a Win32 dll (not a Com dll). For that I

    called
    >the LoadLibrary API to load the dll into the process space of my application,
    >and the GetProcAddress to get the address of the desired function. Now,

    how
    >can I use this function pointer to call the function of the dll.
    >
    >Any help in this direction will be really helpful.
    >
    >Thanx



  4. #4
    Roy Guest

    Re: Calling Dll Function by Function Pointer

    Sonia,
    first of all do your self a big favor - get "Visual Basic programmers guide
    to the Win32 API" written by Daniel Appelman. As an alternative check
    www.allapi.com for some utility download, but don't be confused with it -
    you should get that book anyway. This will get you started.

    Regards,
    Roy

    "Sonia Kumar" <hshahid@itimpk.com> wrote in message
    news:3b498c99$1@news.devx.com...
    >
    > Hello all,
    >
    > I need to call the Functions of a Win32 dll (not a Com dll). For that I

    called
    > the LoadLibrary API to load the dll into the process space of my

    application,
    > and the GetProcAddress to get the address of the desired function. Now,

    how
    > can I use this function pointer to call the function of the dll.
    >
    > Any help in this direction will be really helpful.
    >
    > Thanx




  5. #5
    Roy Guest

    Re: Calling Dll Function by Function Pointer

    Sonia,
    first of all do your self a big favor - get "Visual Basic programmers guide
    to the Win32 API" written by Daniel Appelman. As an alternative check
    www.allapi.com for some utility download, but don't be confused with it -
    you should get that book anyway. This will get you started.

    Regards,
    Roy

    "Sonia Kumar" <hshahid@itimpk.com> wrote in message
    news:3b498c99$1@news.devx.com...
    >
    > Hello all,
    >
    > I need to call the Functions of a Win32 dll (not a Com dll). For that I

    called
    > the LoadLibrary API to load the dll into the process space of my

    application,
    > and the GetProcAddress to get the address of the desired function. Now,

    how
    > can I use this function pointer to call the function of the dll.
    >
    > Any help in this direction will be really helpful.
    >
    > Thanx




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