Subject Re: [IBO] Suggestions for 4.0
Author Jason Wharton
I like this. It appears to have the benefit of conserving virtual memory.
The idea I proposed earlier would consume virtual memory for all constants
that were possible for all languages. In your case, you just have the DLL
files on hand and if you want to change languages you simply reload.

I like it...

The part I don't like about the "built-in"resource string handling that
Borland provides is that it is for the EXE only so I would somehow have to
make available my strings for the developer to merge in with their strings.
It is doable from that angle too.

Does anyone out there use the built in resourcestring stuff? Please let me
know how you like it and how I could assist to provide the IBO string
substitutions. Also, can you change strings dynamically without having to
close and reopen the application?

Thanks,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Riho-Rene Ellermaa" <r.ellermaa@...>
To: <IBObjects@egroups.com>
Sent: Friday, December 01, 2000 2:10 AM
Subject: RE: [IBO] Suggestions for 4.0


> 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
>
> > -----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?
> >
>
>
>
>
>
>