sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 269 forks source link

tiscript data binding doesn't work with go-sciter. #210

Open TongxiJi opened 4 years ago

TongxiJi commented 4 years ago

https://sciter.com/model-view-whatever-the-plus-engine-for-sciter/ this's not working for in go-sciter. It works fine with sciter.exe and sciter-mfc.exe.

code below: w, err := window.New(sciter.SW_MAIN,sciter.DefaultRect) if err != nil { log.Fatal(err) } w.LoadFile(x:\0-basic-variable-binding.htm) w.SetTitle("Hello, world") w.Show() w.Run()

VanillaScent commented 4 years ago

I think this is because of as stated in the README.md

Things that are not supported:

Sciter Node API TIScript Engine API

For this to work I think someone would have to make pure C headers. Also stated:

It seems Sciter is developed using C++, and the included headers in the Sciter SDK are a mixture of C and C++, which is not quite suitable for an easy golang binding.

I'm not much fond of C++ since I started to use Golang, so I made this modification and hope Andrew Fedoniouk the author would provide pure C header files for Sciter. :)

pravic commented 4 years ago

Things that are not supported

No, it is about the native API bindings. It is parallel to TIScript itself which should work as is anywhere.

big-hippo commented 4 years ago

i use tis +plus in many projects with go-sciter, it works well. please use inspector app and debug it