# Dynamically loading a C11 compiled DLL within C8 app

**URL:** <https://clarionhub.com/t/dynamically-loading-a-c11-compiled-dll-within-c8-app/5968>\
**Category:** questions\
**Tags:** dll, c11\
**Created:** [February 17, 2023, 4:24pm UTC](https://clarionhub.com/t/dynamically-loading-a-c11-compiled-dll-within-c8-app/5968 "2023-02-17T16:24:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![e\_mano\_e](https://clarionhub.com/letter_avatar_proxy/v4/letter/e/c77e96/32.png) [@e\_mano\_e](https://clarionhub.com/u/e_mano_e)\
**Post date:** [February 17, 2023, 4:24pm UTC](https://clarionhub.com/t/dynamically-loading-a-c11-compiled-dll-within-c8-app/5968/1 "2023-02-17T16:24:53Z")

</div>

Hi,

my main application is still written in Clarion8.

But I'm now doing some things in Clarion11.  
I've created a DLL with Clarion11 which is compiled as a DLL with the "lib" setting.  
So this DLL is a standalone DLL which does not use the Clarion runtime DLL's.

The problem is that when I try to dynamically load the C11 DLL inside my Clarion8 app I get the following message:

 ![image](https://clarionhub-uploads.s3.dualstack.eu-north-1.amazonaws.com/original/2X/1/1ac0db60f8ee10647a630c644167ffe5e87d501a.png)

This message looks like it would be a warning because it says "can work incorrectly".  
But the problem is that after clicking OK the dynamic loading of the DLL fails.

Is there any compiler setting I can use in the C11 DLL to avoid the RTL version check?

Any ideas?

Thanks.

Jens

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [February 17, 2023, 4:46pm UTC](https://clarionhub.com/t/dynamically-loading-a-c11-compiled-dll-within-c8-app/5968/2 "2023-02-17T16:46:07Z")

</div>

Mixing Clarion versions is not something you can do, AFAIK.

I thought I remembered someone creating some kind of framework to be able to accomplish this, but I can’t remember who or where it was.

---

<div class="post-metadata">

**Author:** ![e\_mano\_e](https://clarionhub.com/letter_avatar_proxy/v4/letter/e/c77e96/32.png) [@e\_mano\_e](https://clarionhub.com/u/e_mano_e)\
**Post date:** [February 17, 2023, 5:00pm UTC](https://clarionhub.com/t/dynamically-loading-a-c11-compiled-dll-within-c8-app/5968/3 "2023-02-17T17:00:41Z")

</div>

But the C11 DLL is compiled in standalone mode. It does not use the external runtime files. So there should be no conflict between the versions.

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [February 17, 2023, 5:08pm UTC](https://clarionhub.com/t/dynamically-loading-a-c11-compiled-dll-within-c8-app/5968/4 "2023-02-17T17:08:02Z")

</div>

Yet, it doesn’t work.

---

<div class="post-metadata">

**Author:** ![anon77170705](https://clarionhub.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@anon77170705](https://clarionhub.com/u/anon77170705)\
**Post date:** [February 17, 2023, 5:37pm UTC](https://clarionhub.com/t/dynamically-loading-a-c11-compiled-dll-within-c8-app/5968/5 "2023-02-17T17:37:45Z")

</div>

Clarion allows to use several instances of the RTL (for example, CLARUN.DLL and CLARUNL.LIB linked locally to some executable) in one process but all these instances must be of compatible versions. This is because some data must be shared between all RTL instances. An example of such data is the per-thread string stack. There are about 30 data objects/structures which must be shared.  
RTLs in C8 and C11 are not compatible.
