Read localization data from resource from stream
I compiled FR language files (*.frc) into a .res file and linked it into my .exe.
In order to read the localization data, I create a file and import that file again, which is a bit clumsy:
As frxResources also offers a .LoadFromStream method, I'd rater skip creating a file and import directly from stream.
Unfortunatetly, TResourceStream is not compatible with .LoadFromStream method.
Does anybody know how to proceed?
Brgds.
Steffen
In order to read the localization data, I create a file and import that file again, which is a bit clumsy:
var
vFRlangFile: string;
RS: TResourceStream;
  RS := TResourceStream.Create(HInstance, 'GERMAN', RT_RCDATA);
  try
    vFRlangFile := [temppath] + 'FR_German.frc';
    RS.SaveToFile(vFRlangFile);
    frxResources.LoadFromFile([temppath] + 'FR_German.frc')
  finally
    RS.Free;
  end;
As frxResources also offers a .LoadFromStream method, I'd rater skip creating a file and import directly from stream.
Unfortunatetly, TResourceStream is not compatible with .LoadFromStream method.
Does anybody know how to proceed?
Brgds.
Steffen