Re: Post with CEF4Delphi
Posted: Fri Aug 10, 2018 8:31 am
Hi,
Did you use the code from this post?
https://groups.google.com/forum/?fromgr ... 1_ytEvBHEs
It's repeated here with more comments :
https://stackoverflow.com/questions/129 ... h-chromium
CreateField is a custom function defined in the first code block in that answer :
That code is 7 years old and CEF has evolved a lot since then.
At that time, the TCefRequestRef.Flags were named WUR_FLAG_* but those names changed to UR_FLAG_* (without the W).
If you want to use those flags in CEF4Delphi you will have to add uCEFConstants to the uses section.
In order to use TCefRequestRef, TCefStringMultimapOwn, TCefPostDataRef and TCefPostDataElementRef you will have to add uCEFRequest, uCEFStringMultimap, uCEFPostData and uCEFPostDataElement to the uses section.
ceflib is a DCEF3 unit and it doesn't exists in CEF4Delphi. All the DCEF3 units were split into many smaller units when CEF4Delphi was created.
Did you use the code from this post?
https://groups.google.com/forum/?fromgr ... 1_ytEvBHEs
It's repeated here with more comments :
https://stackoverflow.com/questions/129 ... h-chromium
CreateField is a custom function defined in the first code block in that answer :
Code: Select all
function CreateField(const AValue: AnsiString): ICefPostDataElement;
begin
Result := TCefPostDataElementRef.New;
Result.SetToBytes(Length(AValue), PAnsiChar(AValue));
end;
At that time, the TCefRequestRef.Flags were named WUR_FLAG_* but those names changed to UR_FLAG_* (without the W).
If you want to use those flags in CEF4Delphi you will have to add uCEFConstants to the uses section.
In order to use TCefRequestRef, TCefStringMultimapOwn, TCefPostDataRef and TCefPostDataElementRef you will have to add uCEFRequest, uCEFStringMultimap, uCEFPostData and uCEFPostDataElement to the uses section.
ceflib is a DCEF3 unit and it doesn't exists in CEF4Delphi. All the DCEF3 units were split into many smaller units when CEF4Delphi was created.