Michał Hanusek
Michał Hanusek
Maybe you should try this: ``` use cxx::{CxxString}; #[cxx::bridge] mod ffi { unsafe extern "C++" { include!("xct.h"); fn xct_detect() -> CxxString; } } ``` Here you have similar example: https://cxx.rs/binding/cxxstring.html#example...
@dtolnay What's the plan for solving this? You are going to use std::function? Can I help with the implementation?
> Hallo. I was able to solve a similar problem recently. May be you can use it as well. See #957 Thx for your reply but... You have your stuct's...
> Recently I used cxx and had a use case where a hashmap and/or hashset would have been useful. They are mentioned as pending in the docs and so I'd...
Hi, I have the same problem with the function - int tcp_bs = modbus_receive(tcp_ctx, tcp_buf); I am writing code in C + +. I create an object, destroy object and...
I solved this problem. I've added the code : ``` #include #include shutdown(socket,2); ``` ;)
> > Hello > > You want the server to periodically update the value and the client to periodically read the value on the server? > > Bests > >...
I solved this problem. ```python con = iec61850.IedConnection_create() error = iec61850.IedConnection_connect(con, "127.0.0.1", 102) if (error != iec61850.IED_ERROR_OK): iec61850.IedConnection_destroy(con) assert False, "IEC-61850 connection failed!" setVal = iec61850.MmsValue_newBoolean(True) assert setVal is not...
> It should work this way. What is the error? Value is **0**. Correct value is **2**.
I did solved this problem. I did created new function -> IedConnection_readBitStringAsIntegerBigEndian() ```python def read_bit_string(var_name): con = iec61850.IedConnection_create() error = iec61850.IedConnection_connect(con, "127.0.0.1", 102) if error != iec61850.IED_ERROR_OK: iec61850.IedConnection_destroy(con) assert False,...