DCL 4.0
Loading...
Searching...
No Matches
MyModuleMain.cpp
Go to the documentation of this file.
1#include <dcl/Config.h>
2
3#ifdef _MSC_VER
4#if 1
5 #pragma comment(lib, "libmariadb.lib")
6#else
7 #pragma comment(lib, "mariadbclient.lib")
8 #pragma comment(lib, "ws2_32.lib")
9 #pragma comment(lib, "secur32.lib")
10 #pragma comment(lib, "crypt32.lib")
11 #pragma comment(lib, "bcrypt.lib")
12 #pragma comment(lib, "shlwapi.lib")
13#endif
14#endif
15
16#include <dcl/Object.h>
17#if __DCL_HAVE_ALLOC_DEBUG
18#undef __DCL_ALLOC_LEVEL
19#define __DCL_ALLOC_LEVEL __DCL_ALLOC_INTERNAL
20#endif
21
22#include <dcl/SQLCore.h>
23#include "MyConnection.h"
24
25#if __DCL_HAVE_THIS_FILE__
26#undef __THIS_FILE__
27static const wchar_t __THIS_FILE__[] = __T("dcl/sql/MyModuleMain.cpp");
28#endif
29
30/*
31#ifdef _WINDOWS
32BOOL APIENTRY DllMain( HANDLE hModule,
33 DWORD ul_reason_for_call,
34 LPVOID lpReserved
35 )
36{
37 switch (ul_reason_for_call)
38 {
39 case DLL_PROCESS_ATTACH:
40 case DLL_PROCESS_DETACH:
41 return TRUE;
42 case DLL_THREAD_ATTACH:
43 case DLL_THREAD_DETACH:
44 break;
45 }
46 return FALSE;
47}
48#endif
49*/
50
51__DCL_BEGIN_NAMESPACE
52
53static const wchar_t* _serverTitle = __T("MariaDB");
54
56{
57 return new MyConnection(_serverTitle);
58}
59
61{
62 return true;
63}
64
66{
67 return true;
68}
69
70extern "C"
71{
74{
75 // DCL common members
76 sizeof(SQL::DRIVER_MODULE), // structure size
80 DCL_SQL_DRIVER_MODULE, // module type
81 __T("DCL SQL Driver for MariaDB, MySQL Database Server"),
82
83 // private members
85 _serverTitle,
86 __T("4.0.0.0"),
90};
91
92}
93
94__DCL_END_NAMESPACE
#define __THIS_FILE__
Definition _trace.h:14
#define __TIMESTAMP__
Definition Config.h:215
#define DCL_DSO_ENTRY_POINT
Definition Config.h:393
#define DCL_BUILD_FLAG
Definition Config.h:399
#define DCL_SQL_DRIVER_MODULE
Definition Config.h:390
#define DCL_SQL_VERSION
Definition Config.h:381
#define DCL_VERSION
Definition Config.h:376
#define DCL_DSO_EXPORT
Definition Config.h:111
bool ModuleInitialize()
bool ModuleCleanup()
SQL::Connection * CreateConnectionInstance()
bool ModuleInitialize()
bool ModuleCleanup()
SQL::Connection * CreateConnectionInstance()
#define __T(str)
Definition Object.h:44