AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Delphi Chromium Embedded - XE3

Ein Thema von API · begonnen am 25. Mai 2013 · letzter Beitrag vom 26. Mai 2013
Antwort Antwort
API

Registriert seit: 18. Apr 2004
637 Beiträge
 
#1

Delphi Chromium Embedded - XE3

  Alt 25. Mai 2013, 17:53
Hallo,

Beim Kompilieren der unit ceffmx.pas zeigt es einige Fehlermeldungen an. Kann mir jemand helfen, den Code für XE3 lauffähig zu machen?

Zitat:
[dcc32 Error] ceffmx.pas(440): E2003 Undeclared identifier: 'ScanLine'
Delphi-Quellcode:
function CefGetBitmap(const browser: ICefBrowser; typ: TCefPaintElementType; Bitmap: TBitmap): Boolean;
var
  w, h, i: Integer;
  p, s: Pointer;
begin
  browser.GetSize(typ, w, h);
  Bitmap.SetSize(w, h);
  GetMem(p, h * w * 4);
  try
    Result := browser.GetImage(typ, w, h, p);
    s := p;
    for i := 0 to h - 1 do
    begin
      Move(s^, Bitmap.ScanLine[i]^, w*4);
      Inc(Integer(s), w*4);
    end;
  finally
    FreeMem(p);
  end;
end;
Zitat:
[dcc32 Error] ceffmx.pas(440): E2017 Pointer type required
    Move(s^, Bitmap.ScanLine[i]^, w*4);
Zitat:
[dcc32 Error] ceffmx.pas(809): E2003 Undeclared identifier: 'StartLine'
   dst := @PByte(StartLine)[offset]; // StartLine ist vermutlich eine Eigenschaft von TBitmap
Zitat:
[dcc32 Error] ceffmx.pas(815): E2034 Too many actual parameters
    Move(src^, dst^, offset);
Zitat:
[dcc32 Error] ceffmx.pas(1060): E2003 Undeclared identifier: 'Platform'
    with AbsoluteToLocal(Platform.GetMousePos) do
Angehängte Dateien
Dateityp: pas ceffmx.pas (41,0 KB, 6x aufgerufen)
  Mit Zitat antworten Zitat
Benutzerbild von sx2008
sx2008

Registriert seit: 15. Feb 2008
Ort: Baden-Württemberg
2.332 Beiträge
 
Delphi 2007 Professional
 
#2

AW: Delphi Chromium Embedded - XE3

  Alt 25. Mai 2013, 18:23
Das Problem ist wohl, dass Pointer s keinen Datentyp hat.
Ungetestet (hab kein XE)
Delphi-Quellcode:
function CefGetBitmap(const browser: ICefBrowser; typ: TCefPaintElementType; Bitmap: TBitmap): Boolean;
var
  w, h, i: Integer;
  p : Pointer;
  s : PInteger; // Zeiger auf einen Integer mit 4 Byte
begin
  browser.GetSize(typ, w, h);
  Bitmap.PixelFormat := pf32bit; // Wichtig
  Bitmap.SetSize(w, h);

  GetMem(p, h * w * 4);
  try
    Result := browser.GetImage(typ, w, h, p);
    s := PInteger(p);
    for i := 0 to h - 1 do
    begin
      Move(s^, Bitmap.ScanLine[i]^, w*4);
      Inc(s);
    end;
  finally
    FreeMem(p);
  end;
end;
fork me on Github
  Mit Zitat antworten Zitat
Benutzerbild von rweinzierl
rweinzierl

Registriert seit: 22. Mär 2005
98 Beiträge
 
#3

AW: Delphi Chromium Embedded - XE3

  Alt 26. Mai 2013, 07:51
Hallo

Vielleicht hilft das

https://groups.google.com/forum/#!to...ed/rLt4wgRDy0c

mfg

Reinhold
  Mit Zitat antworten Zitat
Benutzerbild von jaenicke
jaenicke

Registriert seit: 10. Jun 2003
Ort: Berlin
9.346 Beiträge
 
Delphi 11 Alexandria
 
#4

AW: Delphi Chromium Embedded - XE3

  Alt 26. Mai 2013, 09:49
Wenn du nicht FireMonkey nutzt, brauchst du die ceffmx.pas gar nicht.
Sebastian Jänicke
Alle eigenen Projekte sind eingestellt, ebenso meine Homepage, Downloadlinks usw. im Forum bleiben aktiv!
  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 22:49 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