Open C++ .DLL

Hello All.

I have a project which I relly on a C++ .dll and I reallized that the component only access the .dll when I disable COFF byte arrays in GrasshopperDeveloperSettings or when I place the .dll inside Rhino System folder.

Any clues on how I can manage to access it without having to disable COFF byte arrays?

Thanks in Advance!

Márcio

What problem are you solving by using COFF loading? Ideally you would never have to do that.

When an assembly is loaded via the memory (i.e. COFF) then Windows doesn’t know where to look for any other assemblies it relies on, except in the most obvious places. So you’ll need to load it yourself via code. I’m not exactly sure what the best way is to load a C++ assembly via .NET though…