Hi,
I think the problem has more to do with the way that Lazarus is creating .dlls than with the VST details.
I made a small test procedure. It consists of an application written in Lazarus called “test_dll.exe”. This application opens a window with two buttons. One button executes a procedure contained in a .dll written using Lazarus, and the other button executes a similar procedure contained in a .dll written in Delphi.
The code for both .dlls is essentially identical between Lazarus and Delphi. However, the Delphi .dll is successfully executed by the “test_dll.exe” and the Lazarus .dll causes an error.
I make the source code available for test routine and .dlls at this link.
Download DLL_Test.zipUnizip to a temporary directory:
Under Lazarus open the “test_dll.lpi” project and compile.
Under Lazarus open the “mydll.lpi” project and compile.
Under Delphi open the “mydllD.dpr” project and compile.
Double click the “test_dll.exe” and try clicking the buttons.
The Lazarus compiled .dll does not work.
Maybe it's a config item - I don't know.
Complied using Lazarus 0.9.12 Beta.