# Unable to pass string parameters to Clarion Dll from C#

**URL:** <https://clarionhub.com/t/unable-to-pass-string-parameters-to-clarion-dll-from-c/4430>\
**Category:** questions\
**Tags:** clarion10\
**Created:** [August 31, 2021, 1:39pm UTC](https://clarionhub.com/t/unable-to-pass-string-parameters-to-clarion-dll-from-c/4430 "2021-08-31T13:39:05Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [September 1, 2021, 11:06am UTC](https://clarionhub.com/t/unable-to-pass-string-parameters-to-clarion-dll-from-c/4430/12 "2021-09-01T11:06:03Z")

</div>

> [@Rick\_UpperPark](#):
>
> Search these out and review the topics.  
> [https://clarionhub.com/search?q=.net](https://clarionhub.com/search?q=.net)

“.Net” works but is a bit small. Searching for “MarshalAs” or “DllImport” finds these results:

> [@Calling Clarion procedures from C#](https://clarionhub.com/t/calling-clarion-procedures-from-c/349):
>
> Clarion Prototypes aStrToStr FUNCTION(BSTRING pInput), BSTRING, PASCAL, NAME('aStrToStr') Multiply FUNCTION(BYTE A, BYTE B), BYTE, PASCAL, NAME('Multiply') Msg PROCEDURE(), PASCAL, NAME('Msg') C# Prototypes: [DllImport("bobavi.dll", ExactSpelling = true)] [return: MarshalAs(UnmanagedType.BStr)] public static extern string aStrToStr ([MarshalAs(UnmanagedType.BStr)] string pInput); [DllImport("bobavi.dll", ExactSpelling = true)] public static extern byte Multiply(byte A, byte B); [DllI…

> [@Using Groups with .Net Com Controls Part 1](https://clarionhub.com/t/using-groups-with-net-com-controls-part-1/311):
>
> I have been working with .Net for a client to create a COM control to be used in his clarion product over the last 3 years. For the most part it has been very successful and I have even shared some of my findings with [Clarion Live](http://clarionlive.wikispaces.com/) One of the things that I thought was impossible to achieve based on other articles I had read was that it is not possible with a standard OLE control to be able to pass a clarion group to the control, until last week I still held this belief. However after a convers…

---

_[View the full topic](https://clarionhub.com/t/unable-to-pass-string-parameters-to-clarion-dll-from-c/4430)._
