I had a similar Problem where DLL didn’t work because im on Linux, C-scripts were complicated and the plecs documentation unreliable.
I switched to Matlab/Simulink and used plecs Blockset as Matlab is much more flexible with interfaces to other code. Maybe thats something to consider for you aswell.