sciter-sdk / rust-sciter

Rust bindings for Sciter
https://sciter.com
MIT License
804 stars 75 forks source link

How to load the Sciter static library in Windows? #137

Open enp6 opened 2 years ago

enp6 commented 2 years ago

I have purchased the license for Sciter and compiled the static library, but how does Sciter load the static library in Rust?

GirkovArpa commented 2 years ago

Isn't the static library written in C?

I don't know that you can statically link a C library with a Rust program.

pravic commented 2 years ago

@GirkovArpa You can: https://doc.rust-lang.org/nomicon/ffi.html

pravic commented 2 years ago

@CHORDTAAX You can try this one: https://github.com/sciter-sdk/rust-sciter/pull/124