MiddleWares_YiHe 郑州颐和医院随访系统中间件

FsLink.cpp 900B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // FsLink.cpp : 定义 DLL 应用程序的导出函数。
  2. //
  3. #include "stdafx.h"
  4. #include "DeviceLink.h"
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #endif
  8. // 唯一的应用程序对象
  9. CWinApp theApp;
  10. map<CString, CChanExten* > chanExtenbp;
  11. map<int, CString> trunkRecordSession;
  12. map<int, CString> ExtenRecordSession;
  13. map<LONG, CHAN_EVENT_ID> ExtenRecordCall;
  14. using namespace std;
  15. int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
  16. {
  17. int nRetCode = 0;
  18. HMODULE hModule = ::GetModuleHandle(NULL);
  19. if (hModule != NULL)
  20. {
  21. // 初始化 MFC 并在失败时显示错误
  22. if (!AfxWinInit(hModule, NULL, ::GetCommandLine(), 0))
  23. {
  24. // TODO: 更改错误代码以符合您的需要
  25. _tprintf(_T("错误: MFC 初始化失败\n"));
  26. nRetCode = 1;
  27. }
  28. else
  29. {
  30. // TODO: 在此处为应用程序的行为编写代码。
  31. }
  32. }
  33. else
  34. {
  35. // TODO: 更改错误代码以符合您的需要
  36. _tprintf(_T("错误: GetModuleHandle 失败\n"));
  37. nRetCode = 1;
  38. }
  39. return nRetCode;
  40. }