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

📄 stockrefer.h

📁 本程序是VC为平台开发的股票资讯系统
💻 H
字号:
// StockRefer.h : main header file for the STOCKREFER application
//

#if !defined(AFX_STOCKREFER_H__07CE3984_E2E9_11D4_B45A_00104B1269BD__INCLUDED_)
#define AFX_STOCKREFER_H__07CE3984_E2E9_11D4_B45A_00104B1269BD__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 "SingleInstance.h"

#define NEWSEARCH_HOME		_T("http://www.newsearch.com.cn/")
#define CONTENT_DATABASE	_T("stockcont.sdb")
#define STOCKDAT_DATABASE	_T("stockdat.sdb")
#define BACK_IMAGE_PATH		_T("BackImage")

#define SOFT_VER			_T("1010")
#define TEST_VER			_T("1004")
#define BUILD_VER			_T("Build 020119")
#define HELP_PATH			_T("StockInfo.chm")
#define REG_TAG				_T("1000")
#define REG_KEY				_T("Newease Software\\StockInfo 1.10")
#define UPDATE_URL			_T("http://www.newsearch.com.cn/cgi-bin/newsoft/edusearch/update.php?id=%ld&tag=%s")
#define REG_URL				_T("http://www.newsearch.com.cn/cgi-bin/newsoft/edusearch/register.php?name=%s&email=%s&no=%s&uid=%ld")
#define SOURCE_PWD			_T(";PWD=新_NS_???_dat!30讯")
#define CONTENT_PWD			_T(";PWD=新_NS_???_dat!09股")

#define CATEGORY_NUM 17

/////////////////////////////////////////////////////////////////////////////
// CStockReferApp:
// See StockRefer.cpp for the implementation of this class
//

class CStockReferApp : public CWinApp
{
public:
	CStockReferApp();
	void HelpUpdate();
	
	CSingleInstance m_singleInstance;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStockReferApp)
	public:
	virtual BOOL InitInstance();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CStockReferApp)
	afx_msg void OnAppAbout();
	afx_msg void OnHelpTip();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

protected:
	CString m_strUpdateUrl;
	CString mainver;
	CString searchver;

	void RunUpdate(LPCTSTR lpszCont);
	void ShowTipAtStartup();
	void OldVerCheck();
	CString GetMainVer();
	CString GetAppPath();
	BOOL RegisterCheck();
	void BeginDownload(int flag,CString m_sURL,CString m_sFile,int sver = 0);

public:
	CString m_strSer;
	CString m_strAppPath;
};

extern BOOL HAS_REG;
extern int iCurSel;

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

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

#endif // !defined(AFX_STOCKREFER_H__07CE3984_E2E9_11D4_B45A_00104B1269BD__INCLUDED_)

⌨️ 快捷键说明

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