delphi7:
LibHandle:HWND;
DllNameS:procedure(str:String;str2:String;i:integer);Stdcall;
i2: integer;LibHandle:=LoadLibrary('S.dll');
if LibHandle>32 then
   begin
   @DllNameS:=GetProcAddress(LibHandle,'SName');
   DllNameS(View[i2],Arr[i2],i2);
   end;
FreeLibrary(LibHandle);vc6:
extern "C" _declspec(dllexport) void SetSoftName(char* str,char* str2,int i);
extern "C" _declspec(dllexport) void SetSoftName(char* str,char* str2,int i)
{
  SoftName[i] = str;
  SoftPath[i] = str2;
}当结束dll调用的时候说:Project c:\soft\s.exe faulted with message:
'access violation at 0x00e3d16b:write of address 0xfffffffd2'.
Process Stopped.Us Step or run to continue.