RE: ToUnicodeEx function not supported on Win95


Subject: RE: ToUnicodeEx function not supported on Win95
From: Bruce Pearson &/or Gwyn Ingham (BruceP@wn.com.au)
Date: Thu Jun 14 2001 - 02:29:33 CDT


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: owner-abiword-dev@abisource.com
> [mailto:owner-abiword-dev@abisource.com]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 <hippietrail@yahoo.com>:
>
> > 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
>



This archive was generated by hypermail 2b25 : Thu Jun 14 2001 - 02:34:24 CDT