pixelk0 / delphichromiumembedded

Automatically exported from code.google.com/p/delphichromiumembedded
0 stars 1 forks source link

compiling the Component to Use with C++ on Borland Developer Studio 2006 #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I opened the component project on C++ compiler that will create for me the 
component to use on C++ , and it seems that i when i am adding the hpp file to 
the c++ project it has errors and it remove some of the functions. 
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
the dcef-V0.2

Please provide any additional information below.
I don't know if it need to support the C++ or if you willing to make it support 
. because the Borland use only Delphi Components . 
thanks  

Original issue reported on code.google.com by yoav.br...@gmail.com on 20 Oct 2010 at 9:10

GoogleCodeExporter commented 8 years ago
Just an FYI, this project is called DELPHI Chromium Embedded, not C++ Builder 
Chromium Embedded

Original comment by ad...@enesce.com on 27 Oct 2010 at 10:39

GoogleCodeExporter commented 8 years ago
I know , There is a C++ builder chromium Embedded project?

Original comment by yoav.br...@gmail.com on 27 Oct 2010 at 10:44

GoogleCodeExporter commented 8 years ago
c++ is not officialy suported

Original comment by hgourv...@gmail.com on 29 Oct 2010 at 11:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Well, although it´s unsupported, it´s easy to get TChromium on C++ Builder XE 
(2011).
Just comment constructors prototypes and implementations for CreateNull and 
CreateArray at libcef.pas and install.
It works fine with dCEF-r158 but, no support at all! You should mantain it in 
further versions.

Original comment by ren...@q10.com.br on 27 Jan 2011 at 3:05

GoogleCodeExporter commented 8 years ago

Original comment by hgourv...@gmail.com on 2 Feb 2011 at 11:35

GoogleCodeExporter commented 8 years ago
Hello, I work with Renato (from comment 5) and I´d like to contribute with 
this issue too.

Besides the changes my colleague pointed we had to make another one: 
We moved the declarations of some function pointers to the global "var" area, 
located before "implementation". The range of function pointers moved is from 
"cef_browser_create" to "cef_zip_reader_create".
The purpose was to make these variables available on the C++ generated headers 
(hpp), as we needed access to function "cef_stream_reader_create_for_file".

Besides that, we got another problem that seems to be a designer time defect 
(I´ll generate an issue at embarcadero). 
I´ll write it here to help future C++ Builder developers: 
When you have an event that receives a delphi "out" parameter, such as 
TCefRetval, the hpp is generated in C++ with a reference variable correctly. 
However, in design time, when we implement the event with "Object Inspector", 
it appears without the & modificator (C++ reference).

Example:
   void __fastcall Chromium1AfterCreated(TCustomChromium *Sender, 
   ICefBrowser *browser, TCefRetval Result);//<-This should be  TCefRetval &Result

The workaround is to put the & manually.

I´m sending the modified sources, but we can also contribute directly on the 
SVN.

Original comment by a...@q10.com.br on 2 Feb 2011 at 5:44

Attachments:

GoogleCodeExporter commented 8 years ago
All I had to do get this to compile and run with a simple test project was to 
replace  the names of some parameters called "return" to "returnString".  
return is a reserved word in C++.  I've included the project file in the patch 
if anyone would like a pre-built C++ Builder 2007 project file.  There was one 
more change to PROXY_TYPE_DIRECT related to this:
http://code.google.com/p/chromiumembedded/issues/detail?id=548

Original comment by benbra...@gmail.com on 21 Jun 2012 at 9:03

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

Just tryign to follow the ideas above to get this building in C++Builder XE, 
has anyone got .cbproj file that will install from XE?

Thanks,

Original comment by dasuitc...@googlemail.com on 23 Jul 2012 at 11:45

GoogleCodeExporter commented 8 years ago
We did a port do Builder XE, although our version is a bit old (dCef r275) I'm 
sending it.

We didn't create a .cbproj, but instead we've made changes on the .dproj to 
generate C++ files. This implies we need Delphi personality to install the 
component.
Besides that, we've made some changes to the code because it generated const 
variables in places were there should be non const variables.

Original comment by a...@q10.com.br on 25 Jul 2012 at 8:22

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,
I don't know if anyone has experienced this.
I tried writing an application in Borland C++ 2010 using this component.
I wrote a download handler following the example in the guiclient Delphi 
example.
Everything seems to work but when a download is required, only the "Download 
complete" event of the handler fires, the "Data received" event does not. As I 
was under pressure to complete the application (it is not very big), I re-wrote 
it in Delphi in which it works as expected.
I would like to help resolve this phenomenon. What do I need to post to help?
Thanks,
Daniel

Original comment by dan...@inksure.com on 18 Aug 2012 at 4:41