Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.166 Beiträge
 
Delphi 12 Athens
 
#1

OffTopic zu "SQL-Dateien als Resource einbinden"

  Alt 22. Sep 2016, 16:50
Wurde von diesem Tutorial abgespalten

Windows hat da auch ein furchtbar nettes Transfer-Protokoll

Code:
123 FILE "xxx.sql"
xxx FILE "xxx.sql"
"xxx.sql" FILE "xxx.sql"
Delphi-Quellcode:
S := TFile.ReadAllText('res://' + URLEncode(Application.ExeName) + '/#' + ResID);
S := TFile.ReadAllText('res://' + URLEncode(Application.ExeName) + '/' + ResName);
Windows und der IE nutzen das selber auch, an vielen geheimen Stellen.
Code:
"help.html" HTML "htmls/help.html"
Delphi-Quellcode:
// Hilfe-Button
ShellExecute(0, 'OPEN', PChar('res://' + URLEncode(Application.ExeName) + '/help.html'), nil, nil, SW_SHOW);
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests

Geändert von mkinzler (23. Sep 2016 um 07:22 Uhr) Grund: [Edit: Wg. Abspaltung]
  Mit Zitat antworten Zitat