Calling dll funtions

Hi,

Since you are returning an array, try this

const CONNECT_SIZE = 2
connect = ccall((:function_name, "libfile"), stdcall, Ptr{NTuple{CONNECT_SIZE,Int32}}, ())
connect_ = unsafe_load(connect)
# then you will have to convert the NTuple to Array
connect_arr = collect(connect_)

Try to write your code between ``` like this

```julia
some julia code
`` `< remove the space
or c++
```cpp
some c++ code
`` `< remove the space
1 Like