DLL example error filename

I have tried to use DLL but I always have the same error message:

“Error evaluating parameter ‘Filename’ in component Modulation: Cannot load library ‘C:\Temp\visualSVM\MOD\Debug\dllMOD.dll’.”

The file “dllMOD.dll” exist and is in the same directory than my plecs file

I have already tried to compile and gebnerat DLL with visualStudio and CodeBlocks.

Any idea ?

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?

Thanks for comment. I change the target n Visual Studio to x64 and it is now working !