File1.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #include <windows.h>
  4. #include "ufrmMain.h"
  5. #include "mybean.core.beanFactoryForBCB.hpp"
  6. #pragma hdrstop
  7. //---------------------------------------------------------------------------
  8. // Important note about DLL memory management when your DLL uses the
  9. // static version of the RunTime Library:
  10. //
  11. // If your DLL exports any functions that pass String objects (or structs/
  12. // classes containing nested Strings) as parameter or function results,
  13. // you will need to add the library MEMMGR.LIB to both the DLL project and
  14. // any other projects that use the DLL. You will also need to use MEMMGR.LIB
  15. // if any other projects which use the DLL will be performing new or delete
  16. // operations on any non-TObject-derived classes which are exported from the
  17. // DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling
  18. // EXE's to use the BORLNDMM.DLL as their memory manager. In these cases,
  19. // the file BORLNDMM.DLL should be deployed along with your DLL.
  20. //
  21. // To avoid using BORLNDMM.DLL, pass string information using "char *" or
  22. // ShortString parameters.
  23. //
  24. // If your DLL uses the dynamic version of the RTL, you do not need to
  25. // explicitly add MEMMGR.LIB as this will be done implicitly for you
  26. //---------------------------------------------------------------------------
  27. #pragma argsused
  28. int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
  29. {
  30. (beanFactory())->RegisterBean("bcbTest",__classid(TForm1));
  31. return 1;
  32. }
  33. //---------------------------------------------------------------------------