Understanding the architecture of Google V8

I'm not sure I understand the architecture of V8 (yes, I read its documentation).

In C # with v8sharp wrapper I am writing something like this, for example:

namespace App { class Point { public Point() { } public Point(double x, double y) { this.X = x; this.Y = y; } public double X { get; set; } public double Y { get; set; } } } static class Program { static void Main() { //registering with v8sharp V8Engine engine = V8Engine.Create(); engine.Register<App.Point>(); //execute javascript object rtn = engine.Execute("new App.Point(10, 10);"); } } 

How can I write the same thing in standard C ++ without this shell?

Thanks.

+6
c ++ c # v8
source share
1 answer

If you look here: http://code.google.com/apis/v8/embed.html , they have a sample that is identical to yours in the section "Access to dynamic variables"

+3
source share

All Articles