| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- // FsLink.cpp : 定义 DLL 应用程序的导出函数。
- //
- #include "stdafx.h"
- #include "DeviceLink.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- // 唯一的应用程序对象
- CWinApp theApp;
- map<CString, CChanExten* > chanExtenbp;
- map<int, CString> trunkRecordSession;
- map<int, CString> ExtenRecordSession;
- map<LONG, CHAN_EVENT_ID> ExtenRecordCall;
- using namespace std;
- int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
- {
- int nRetCode = 0;
- HMODULE hModule = ::GetModuleHandle(NULL);
- if (hModule != NULL)
- {
- // 初始化 MFC 并在失败时显示错误
- if (!AfxWinInit(hModule, NULL, ::GetCommandLine(), 0))
- {
- // TODO: 更改错误代码以符合您的需要
- _tprintf(_T("错误: MFC 初始化失败\n"));
- nRetCode = 1;
- }
- else
- {
- // TODO: 在此处为应用程序的行为编写代码。
- }
- }
- else
- {
- // TODO: 更改错误代码以符合您的需要
- _tprintf(_T("错误: GetModuleHandle 失败\n"));
- nRetCode = 1;
- }
- return nRetCode;
- }
|