DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  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




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links