# Embedding Julia and two-way communication with cpp code?

**URL:** <https://discourse.julialang.org/t/embedding-julia-and-two-way-communication-with-cpp-code/36445>\
**Category:** General Usage\
**Tags:** question, ccall, embedding\
**Created:** [March 24, 2020, 1:22pm UTC](https://discourse.julialang.org/t/embedding-julia-and-two-way-communication-with-cpp-code/36445 "2020-03-24T13:22:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sairus7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sairus7/32/10816_2.png) [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Post date:** [March 24, 2020, 1:22pm UTC](https://discourse.julialang.org/t/embedding-julia-and-two-way-communication-with-cpp-code/36445/1 "2020-03-24T13:22:24Z")

</div>

As far as I know, it is possible to embedd Julia in Cpp code and call Cpp libraries from Julia.  
But if I embedd Julia and call it from Cpp, how can I callback some Cpp functions and methods on Cpp objects and pass results back to Julia?

I have created a small repo with questions based on the example from embedding tutorial:

> **[GitHub - sairus7/Julia-VS2017: test Julia embedding into Visual Studio 2017](https://github.com/sairus7/Julia-VS2017)**
>
> test Julia embedding into Visual Studio 2017. Contribute to sairus7/Julia-VS2017 development by creating an account on GitHub.
