www.pudn.com > gprs_sms.zip > TestDllDlg1.h


#if !defined(AFX_TESTDLLDLG1_H__6630A152_8EF5_4DD5_B59B_C17DD38D7859__INCLUDED_) 
#define AFX_TESTDLLDLG1_H__6630A152_8EF5_4DD5_B59B_C17DD38D7859__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// TestDllDlg1.h : header file 
// 
 
//get from Sms.dll, these three declaration should be added in all conditions (be dynamid link to dll or static link to dll) 
 
extern "C" __declspec(dllimport) int SendShortMessage(char *Number, int NumberLen, char *Message, int MessageLen);  
extern "C" __declspec(dllexport) int GetStatus(); 
extern "C" __declspec(dllexport) int ReadSms(); 
 
 
///////////////////////////////////////////////////////////////////////////// 
// TestDllDlg1 dialog 
 
class TestDllDlg1 : public CDialog 
{ 
// Construction 
public: 
	TestDllDlg1(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(TestDllDlg1) 
	enum { IDD = IDD_DIALOG1 }; 
	double	m_Hello; 
	double	m_OutputData; 
	double	m_dInput; 
	int		m_Solution; 
	int		m_TestResult; 
	int		m_TestResult_int; 
	CString	m_ContentFromDialog; 
	CString	m_NumberFromDialog; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(TestDllDlg1) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(TestDllDlg1) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnCompute(); 
	afx_msg void OnGrpsStatus(); 
	afx_msg void OnDaSend(); 
	afx_msg void OnReadSms(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
public:            //the following member variable used when test by dynamic link to dll  
	typedef int (SendShortMessageType)(char *Number, int NumberLen, char *Message, int MessageLen); 
	typedef int (GetStatusType)(); 
	typedef int (ReadSmsType)(); 
 
	SendShortMessageType* SendShortMessage; 
	GetStatusType* GetStatus; 
	ReadSmsType* ReadSms; 
 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_TESTDLLDLG1_H__6630A152_8EF5_4DD5_B59B_C17DD38D7859__INCLUDED_)