bbdll.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // bbdll.cpp : Defines the initialization routines for the DLL.
  2. //
  3. // Copyright 2002 Neil Van Eps
  4. //
  5. #include "stdafx.h"
  6. #include "bbdll.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. //
  13. // Note!
  14. //
  15. // If this DLL is dynamically linked against the MFC
  16. // DLLs, any functions exported from this DLL which
  17. // call into MFC must have the AFX_MANAGE_STATE macro
  18. // added at the very beginning of the function.
  19. //
  20. // For example:
  21. //
  22. // extern "C" BOOL PASCAL EXPORT ExportedFunction()
  23. // {
  24. // AFX_MANAGE_STATE(AfxGetStaticModuleState());
  25. // // normal function body here
  26. // }
  27. //
  28. // It is very important that this macro appear in each
  29. // function, prior to any calls into MFC. This means that
  30. // it must appear as the first statement within the
  31. // function, even before any object variable declarations
  32. // as their constructors may generate calls into the MFC
  33. // DLL.
  34. //
  35. // Please see MFC Technical Notes 33 and 58 for additional
  36. // details.
  37. //
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CBbdllApp
  40. BEGIN_MESSAGE_MAP(CBbdllApp, CWinApp)
  41. //{{AFX_MSG_MAP(CBbdllApp)
  42. // NOTE - the ClassWizard will add and remove mapping macros here.
  43. // DO NOT EDIT what you see in these blocks of generated code!
  44. //}}AFX_MSG_MAP
  45. END_MESSAGE_MAP()
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CBbdllApp construction
  48. CBbdllApp::CBbdllApp()
  49. {
  50. // TODO: add construction code here,
  51. // Place all significant initialization in InitInstance
  52. }
  53. /////////////////////////////////////////////////////////////////////////////
  54. // The one and only CBbdllApp object
  55. CBbdllApp theApp;