Call .NET 8.0 DLL from Clarion 10 application

Thank you @Brandon , it really helped.
I would add that you need to copy both DLLs (TestDnneCNE.dll and TestDnneC.dll) to Clarion directory, an must have TestDnneC.runtimeconfig.json with:

{
  "runtimeOptions": {
    "tfm": "net8.0",
    "rollForward": "LatestMinor",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "8.0.0"
    },
    "configProperties": {
      "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
    }
  }
}

Now I just have to make it pass and return a string parameter.

I would advice you to switch to NativeAoT now it supports 32-bit in Dotnet 9 - as you’ll only need the single DLL, you don’t need the runtimeconfig.json anymore

@uriah18 - if you need help, you may PM/DM me - I’ve been doing this for some time and may be able to help you - I recently got it working so I can even pass a GROUP from Clarion to DotNet

@ThaDaSoft
Hi! I’m new to Clarion and want to create a DLL for Clarion using .NET 9. What do I have to do? Can you help me and show an example? Thanks!

@fabian488 - please DM me about this, I am happy to help you get started

Thank you. I did it like you said, using .net9, which is now out of RC. So far everything looks good. I had to jump on another project in the meantime and now I’m back on this. @fabian488 if you need help, ask.

If you need help @uriah18 - you can DM me like @fabian488 did