⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appserver.h

📁 用过恒迅达交换机的人都知道。恒迅达交换机是需要在交换机内部运行中间程序来给脚本提供数据接口并且监控机器运行状态的。本程序即是完成以上功能!用C++开发、调用了数据库(sqlserver2000)存储过
💻 H
字号:
// AppServer.h : main header file for the APPSERVER application
//

#if !defined(AFX_APPSERVER_H__B1447A20_1400_4B75_8412_78A97ED60318__INCLUDED_)
#define AFX_APPSERVER_H__B1447A20_1400_4B75_8412_78A97ED60318__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols
#include "jTTS_ML.h"
#include "include.h"



/////////////////////////////////////////////////////////////////////////////
// CAppServerApp:
// See AppServer.cpp for the implementation of this class
//
//留言通知结构
struct LEAVEMSG
{
	char lw1[30];
	char lw2[30];
	char lw3[30];
	char lw4[30];
};
struct MTCODE
{
	char leaveMsg[6];
	char RecordBack[6];
	char orderSong[6];
};

struct OPERINFO
{
	CString name;			////业务名称
	CString VSpnumber;		///语音特服号
	CString SSpnumber;		///短信特服号
	CString SSpnumber1;		///短信特服号1
};

struct SEATSTATUS
{
	int		iUsed;
	int		iBusy;
};

struct MOMSG
{
	char userNumber[21];
	char spNumber[21];
	char smsg[140];
	int  linkId;
};

//void ErrorMessage(ERRCODE err);
void ProcessMo();
//
int  GetMoMsg(MOMSG *pMoMsg);
//BOOL TTS2FILE(CString strFile,CString strSource,CString strUser);

class CAppServerApp : public CWinApp
{
public:
	void SendCallOut(CString scaller,CString scalled,int ich,CString st);
	void ReadParam();
	void EventLog(CString str);
	BOOL SQLEXEC(CString str);
	void ConnectDatabase();
	void ProcessINIFile();
	CString m_sHXDIpAddress;	//HXD服务器的IP地址
	CString m_sAppIpAddress;	//AppServer的IP地址
	UINT m_nHXDPort;			//HXD服务器的端口号
	UINT m_nAppPort;			//AppServer的端口号
	CAppServerApp();

	_ConnectionPtr m_pConnection; 
	CString		strDataServer,strUser,strPwd;
	struct LEAVEMSG lmsg;		//留言消息
	struct MTCODE mtcode;		//MT代码
	int spCode,loginMode;
	struct OPERINFO operInfo[8];//业务信息
	struct SEATSTATUS seatStatus[64];//座席状态
	CString strTTSSp,strTTSSet;
	CString strCaiHua,strLiaotian;

	int iTTSCode,iTtsMode;
	int	iBegin;
	CString sZeroCode;

	HICON m_pIconList[3];
	HANDLE m_htProcessMo;
	HANDLE m_htProcessCheckCallOut;
/*	static bool  WINAPI*/void ProcessCheckCallOut();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAppServerApp)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CAppServerApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

extern CAppServerApp theApp;

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_APPSERVER_H__B1447A20_1400_4B75_8412_78A97ED60318__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -