# Exposing Clarion DLL to .NET

**URL:** <https://clarionhub.com/t/exposing-clarion-dll-to-net/5540>\
**Category:** questions\
**Tags:** interop, dll, dotnet\
**Created:** [October 20, 2022, 11:48am UTC](https://clarionhub.com/t/exposing-clarion-dll-to-net/5540 "2022-10-20T11:48:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![donridley](https://clarionhub.com/user_avatar/clarionhub.com/donridley/32/1459_2.png) [@donridley](https://clarionhub.com/u/donridley)\
**Post date:** [October 20, 2022, 11:48am UTC](https://clarionhub.com/t/exposing-clarion-dll-to-net/5540/1 "2022-10-20T11:48:24Z")

</div>

Hello All,

For years now I have been calling .NET methods from Clarion with relative ease.

However, the thought just occurred to me; What about the other way around?

How would one expose a Clarion DLL to a .NET/C# application?

Thank you!

---

<div class="post-metadata">

**Author:** ![Clarion\_clarion](https://clarionhub.com/user_avatar/clarionhub.com/clarion_clarion/32/636_2.png) [@Clarion\_clarion](https://clarionhub.com/u/Clarion_clarion)\
**Post date:** [October 20, 2022, 1:57pm UTC](https://clarionhub.com/t/exposing-clarion-dll-to-net/5540/2 "2022-10-20T13:57:44Z")

</div>

take a look at [EASYCOMCREATOR](http://www.ingasoftplus.com/ProductDetail.php?ProductID=21)

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [October 20, 2022, 2:15pm UTC](https://clarionhub.com/t/exposing-clarion-dll-to-net/5540/3 "2022-10-20T14:15:08Z")

</div>

Search for .Net calling Unmanaged DLL also known as Invoke.

> **[Consuming Unmanaged DLL Functions - .NET Framework](https://learn.microsoft.com/en-us/dotnet/framework/interop/consuming-unmanaged-dll-functions)**
>
> Consume unmanaged DLL functions by using the platform invoke service, which lets managed code call unmanaged functions implemented in DLL libraries.

---

<div class="post-metadata">

**Author:** ![Thys](https://clarionhub.com/user_avatar/clarionhub.com/thys/32/3399_2.png) [@Thys](https://clarionhub.com/u/Thys)\
**Post date:** [October 21, 2022, 8:35am UTC](https://clarionhub.com/t/exposing-clarion-dll-to-net/5540/4 "2022-10-21T08:35:21Z")

</div>

This should work. I tried it many years ago with good results.
