-
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
-
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
-
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
-
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
-
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
Forum Rules
|
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
|
Bookmarks