Use GetProcAddress to get the address of the function.

ie
HINSTANCE hInstUser = LoadLibrary("USER32.DLL")
pToUnicodeEx = GetProcAddress(hInstUser, "ToUnicodeEx");
FreeLibrary(hInstUser) // This is ok as the library has a reference count.


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Hubert Figuiere
> Sent: Thursday, 14 June 2001 2:49 PM
> To: Andrew Dunbar
> Cc: Saint-Denis; abiword developer list
> Subject: Re: ToUnicodeEx function not supported on Win95
>
>
> According to Andrew Dunbar <[EMAIL PROTECTED]>:
>
> > Thanks very much Gilles.  It sheds a lot of light.  It sounds to me that
> > this is a dynamic linking error?  We could #ifdef out the call for Win
> > 95 builds but this would mean two Windows builds.
>
> No. This is NOT a good idea.
>
> > I need someone who
> > is more expert than I in this field of Windows.  Should we "look up" the
> > entry to this function to call it?
>
> This is easy to do. I don't remember the function name, but
> dynamic loading
> of functions from DLL is *easy* to do.
>
>
> Hub
>


Reply via email to