S
S
Somewhere Intech2020-04-17 20:44:30
OOP
Somewhere Intech, 2020-04-17 20:44:30

Is it adequate to compile a dll with a class inside?

There is a very convenient lib (krat), I want to write a wrapper over it, simplifying a lot of routine and give it as a dll for writing software in c ++. As a result, a class must be loaded from the pluses to work with it. I googled - it seems possible, but (honestly) I don’t want to go deep and stumble on a rake in vain. How difficult is it to implement and will everything go smoothly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Lesnikov, 2020-04-17
@john36allTa

Quite adequate. The main frustrating step is usually pushing everything through a Cish FFI - can be quite frustrating if the original rusty API uses a lot of high-level language features.
Useful article on the topic: https://hsivonen.fi/modern-cpp-in-rust

A
Alexander Ananiev, 2020-04-17
@SaNNy32

It is better to make an open source solution that anyone can integrate into their projects as a dll or static lib.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question