/client/Plugin/UserMgr/UserMgr.dpr

http://drcp.googlecode.com/ · Pascal · 35 lines · 18 code · 8 blank · 9 comment · 0 complexity · af805ddb514c15f799033814bc8416b3 MD5 · raw file

  1. library UserMgr;
  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.SetFormClass(TForm_Main);
  22. Result := lFormPlugin;
  23. end;
  24. exports
  25. CreateAPlugin;
  26. begin
  27. end.