/client/Plugin/LocalModuleLoader/LocalModuleLoader.dpr

http://drcp.googlecode.com/ · Pascal · 36 lines · 19 code · 8 blank · 9 comment · 0 complexity · 030e6d5e34b2590119969325194c5b60 MD5 · raw file

  1. library LocalModuleLoader;
  2. { Important note about DLL memory management: ShareMem must be the
  3. first unit in your library's USES clause AND your project's (select
  4. Project-View Source) USES clause if your DLL exports any procedures or
  5. functions that pass strings as parameters or function results. This
  6. applies to all strings passed to and from your DLL--even those that
  7. are nested in records and classes. ShareMem is the interface unit to
  8. the BORLNDMM.DLL shared memory manager, which must be deployed along
  9. with your DLL. To avoid using BORLNDMM.DLL, pass string information
  10. using PChar or ShortString parameters. }
  11. uses
  12. ShareMem,
  13. uPluginIntf,
  14. uFormPlugin,
  15. uFormMain in 'uFormMain.pas' {Form_Main};
  16. function CreateAPlugin:IPlugin;
  17. var
  18. lFormPlugin : TFormPlugin;
  19. begin
  20. lFormPlugin := TFormPlugin.Create(nil);
  21. lFormPlugin.ForceSetMDIChild := false;
  22. lFormPlugin.SetFormClass(TForm_Main);
  23. Result := lFormPlugin;
  24. end;
  25. exports
  26. CreateAPlugin;
  27. begin
  28. end.