Dynamic linking a dll

I want from my application choose a dll file from a directory, and see witch
functions the dll have, run one of them and get the result of the function.

The objective is could have more than one dll available with different
functions available, to customize some operations, operations that could be
specific to a costumer.

This way, my application could dependently of the costumer, choose a
customized function/dll that what run to do a particular operation.

How can I do this?

Thanks,
Rui Oliveira

Re: Dynamic linking a dll by Doug

Doug
Thu Jan 03 11:22:39 CST 2008

On Thu, 3 Jan 2008 09:16:01 -0800, Rui Oliveira
<RuiOliveira@discussions.microsoft.com> wrote:

>Dynamic linking a dll
>
>I want from my application choose a dll file from a directory, and see witch
>functions the dll have, run one of them and get the result of the function.
>
>The objective is could have more than one dll available with different
>functions available, to customize some operations, operations that could be
>specific to a costumer.
>
>This way, my application could dependently of the costumer, choose a
>customized function/dll that what run to do a particular operation.
>
>How can I do this?
>
>Thanks,
>Rui Oliveira

See LoadLibrary and GetProcAddress.

--
Doug Harrison
Visual C++ MVP