Subject | RE: [IBO] Suggestions for 4.0 |
---|---|
Author | Riho-Rene Ellermaa |
Post date | 2000-12-01T09:10:28Z |
Very simple sample
HINSTANCE CLib
static char stringBuff[ 300];
char *ResStr(int AResId)
{
if(!LoadString(CLib,AResId, stringBuff, 300))
wsprintf(stringBuff,"Unknown string ID: %d",AResId);
return stringBuff;
}
if(Lang=="Estonia")
CLib= LoadLibrary("Estonia.DLL");
if(Lang=="English")
CLib= LoadLibrary("English.DLL");
AnsiString Str=ResStr(56);
....
FreeLibrary(CLib);
Riho-Rene Ellermaa
senior programmer
Hansabank
HINSTANCE CLib
static char stringBuff[ 300];
char *ResStr(int AResId)
{
if(!LoadString(CLib,AResId, stringBuff, 300))
wsprintf(stringBuff,"Unknown string ID: %d",AResId);
return stringBuff;
}
if(Lang=="Estonia")
CLib= LoadLibrary("Estonia.DLL");
if(Lang=="English")
CLib= LoadLibrary("English.DLL");
AnsiString Str=ResStr(56);
....
FreeLibrary(CLib);
Riho-Rene Ellermaa
senior programmer
Hansabank
> -----Original Message-----
> From: Jason Wharton [mailto:jwharton@...]
> Sent: Friday, December 01, 2000 10:59 AM
> To: IBObjects@egroups.com
> Subject: Re: [IBO] Suggestions for 4.0
>
>
> Is it possible to dynamically load the DLL files?
>
> Would you be so kind as to show me a simple example of how I
> could utilize
> this?
>