升龙物业 老版本 ocx IPO, 加密狗 转值班电话

TtsInterface.cpp 750B

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