interfaceconst
  DLLName = 'Test.Dll';function YourFunctionName(ParameterList...): LRESULT; <font color = #ff0000><strong>stdcall</font></strong>;implementationfunction YourFunctionName; external DLLName 'YourFunctionName';
关键在于你的VC DLL声明中的参数调用方式与在Delphi中引用时的方式必须一致。
如果VC DLL中声明为__cdecl,在Delphi中也必须声明为 cdecl,
如果VC DLL中声明为__stdcall,在Delphi中也必须声明为 stdcall。