Hi,

i want to keep my DLL (Coded in Delphi) loaded.
I translated the C++ struct from

C++:

Code:
  void __stdcall (*LoadDll)(LOADINFO*);

  typedef struct {
    DWORD  mVersion;
    HWND   mHwnd;
    BOOL   mKeep;
  } LOADINFO;



to Delphi:

Code:
type 
  TLOADINFO = record 
    mVersion: DWORD; 
    mHwnd: HWND; 
    mKeep: BOOL; 
  end; 

procedure LoadDll(var LoadInfo: TLOADINFO); stdcall; 
begin
  // ?
end;

exports
  LoadDll;


Now when i load the DLL, mirc crashes (it didnt before).
Any ideas what wrong?