123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #include "stdafx.h"
- #include "ODBCPOOL.h"
- #include "ODBCPtr.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- BEGIN_MESSAGE_MAP(CODBCPOOLApp, CWinApp)
- END_MESSAGE_MAP()
- CODBCPOOLApp::CODBCPOOLApp()
- {
-
-
- }
- CODBCPOOLApp theApp;
- BOOL CODBCPOOLApp::InitInstance()
- {
- CWinApp::InitInstance();
- return TRUE;
- }
- extern "C" IODBCInterface* PASCAL EXPORT lyfzCreatePoolInstance()
- {
- AFX_MANAGE_STATE(AfxGetStaticModuleState());
-
- IODBCInterface *pInstance = CODBCPtr::GetInstance();
- if ( pInstance != NULL )
- pInstance->AddRef();
- return pInstance;
- }
|