# Can I create c++ extensions via DLLs?

**URL:** <https://discourse.slicer.org/t/can-i-create-c-extensions-via-dlls/28393>\
**Category:** Development\
**Tags:** python\
**Created:** [March 15, 2023, 7:55am UTC](https://discourse.slicer.org/t/can-i-create-c-extensions-via-dlls/28393 "2023-03-15T07:55:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [March 15, 2023, 2:04pm UTC](https://discourse.slicer.org/t/can-i-create-c-extensions-via-dlls/28393/2 "2023-03-15T14:04:51Z")

</div>

C++ components of 3D Slicer Qt Loadable Modules ([Module Overview — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/module_overview.html#loadable-modules)) are wrapped in python and exposed automatically (mostly). These wrapped python components will be available in Slicer and can be used by other modules.

I would recommend that you try to integrate this C++ code as part of a Loadable Module. It is also possible to have a sort of hybrid module, where Scripted module ([Module Overview — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/module_overview.html#scripted-modules)) can include some C++ components (an example of this approach is one of the modules of Slicer-Liver: [Slicer-Liver/LiverSegments at develop · ALive-research/Slicer-Liver · GitHub](https://github.com/ALive-research/Slicer-Liver/tree/develop/LiverSegments))

---

_[View the full topic](https://discourse.slicer.org/t/can-i-create-c-extensions-via-dlls/28393)._
