One common source of this issue is the DLL’s target platform not matching the PLECS version. With a 64 bit PLECS executable, the DLL must be compiled for a 64 bit system.
Are you compiling for an x64 target platform?
Are you able to successfully compile a simple model from the “Using the DLL Block” tutorial?