# CxxWrap module rely on external dll

**URL:** <https://discourse.julialang.org/t/cxxwrap-module-rely-on-external-dll/122917>\
**Category:** General Usage\
**Tags:** cxxwrap\
**Created:** [November 22, 2024, 12:09am UTC](https://discourse.julialang.org/t/cxxwrap-module-rely-on-external-dll/122917 "2024-11-22T00:09:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sergey](https://discourse.julialang.org/u/Sergey)\
**Post date:** [November 22, 2024, 12:09am UTC](https://discourse.julialang.org/t/cxxwrap-module-rely-on-external-dll/122917/1 "2024-11-22T00:09:06Z")

</div>

Hi.  
Is it possible to develop CxxWrap module which depend on dll lib?  
Since we directly load dll in `jl` file and one dll cant load another.

```julia
module CppTypes
    using CxxWrap
    @wrapmodule(() -> "libcore.dll", :define_julia_module)

    function __init__ ()
        @initcxx
    end
end

```

For example my module could use some special numerical library via dll.

It seem possible to use dll by embedding julia bindings into exe (JLuna seems to allow bindings within exe which could load dlls and of cource Julia allow to bind functions and structures, which is rather difficult)  
Sad, but CxxWrap could not work this way.

---

<div class="post-metadata">

**Author:** ![Sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sergey](https://discourse.julialang.org/u/Sergey)\
**Post date:** [November 22, 2024, 9:33am UTC](https://discourse.julialang.org/t/cxxwrap-module-rely-on-external-dll/122917/2 "2024-11-22T09:33:16Z")

</div>

Try out to load dll manually and come back with solution, if dll could be found by path (i place it near module dll) everything works perfect.
