AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein Delphi 7 32-Bit localization of App does not work (Exception)
Thema durchsuchen
Ansicht
Themen-Optionen

Delphi 7 32-Bit localization of App does not work (Exception)

Ein Thema von paule32.jk · begonnen am 28. Jul 2023 · letzter Beitrag vom 30. Jul 2023
Antwort Antwort
Benutzerbild von paule32.jk
paule32.jk

Registriert seit: 24. Sep 2022
Ort: Planet Erde
218 Beiträge
 
Delphi 11 Alexandria
 
#1

Delphi 7 32-Bit localization of App does not work (Exception)

  Alt 28. Jul 2023, 19:22
Hello,

I have the following Code-Snip from the reinit.pas of the RichEditor Demo of Delphi 7.
I would like to localisize my Application with different Languages.
I get a exception in the inner "try finally" block.
What did I wrong ?

Edit: woops, English, sollte Deutsch sein !!!

Code:
...
  ResStream := TResourceStream.Create(HInst, ResName, RT_RCDATA);
  try
    AsInheritedReader := TAsInheritedReader.Create(ResStream, 4096);
    try
      Instance := AsInheritedReader.ReadRootComponent(Instance);
      // here, exception occur !
    finally
      AsInheritedReader.Free;
    end;
  finally
    ResStream.Free;
  end;
...
Gruß, paule
Frag doch einfach
  Mit Zitat antworten Zitat
Benutzerbild von Union
Union

Registriert seit: 18. Mär 2004
Ort: Luxembourg
3.487 Beiträge
 
Delphi 7 Enterprise
 
#2

AW: Delphi 7 32-Bit localization of App does not work (Exception)

  Alt 30. Jul 2023, 13:38
Du solltest ReadRootComponent() nicht aufrufen, das passiert automatisch. Stattdessen:
ReadSignature(), ReadPrefix(), ReadStr(), ReadProperties().
Ibi fas ubi proxima merces
sudo /Developer/Library/uninstall-devtools --mode=all
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:30 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz