资源简介

看盘软件源码及实例 带K线图、带数据源实例 股票软件 带数据源文件一份、 带编译好的程序一份(有源码)、 带全部源码一份、 带数据源处理工具一份(有源码)

资源截图

代码片段和文件信息

using System;
using System.Collections;
using System.Text;
using System.IO;
using System.Windows.Forms;
using Microsoft.Win32;


namespace FinData
{
    public class FxjData
    {
        public int Error
        {
            get
            {
                if (msg != ““) return 1;
                else return 0;
            }
        }
        public enum DataTypes {dmzxhqhqminfpgbcwgdjjzbjjzhcqcw0fbcj};
        public FxjData()
        {

            //从注册表中读取分析家数据目录,如c:\fxj\data
            RegistryKey keyFxj;
            RegistryKey keySoftware = Registry.LocalMachine.OpenSubKey(“Software“);
            keyFxj = keySoftware.OpenSubKey(“FXJ“);
            if (keyFxj == null)
            {
                keyFxj = keySoftware.OpenSubKey(“Huitianqi“);
                if (keyFxj == null)
                {
                    fxjDataPath = ““;
                    return;
                }
            }
            RegistryKey keySuperstk = keyFxj.OpenSubKey(“SUPERSTK“);
            if (keySuperstk != null)
            {
                fxjDataPath = (string)keySuperstk.GetValue(“InstPath“);
                if (fxjDataPath != ““)
                {
                    fxjDataPath += @“\DATA\“;
                    fxjDataPath = fxjDataPath.ToUpper();
                    return;
                }
            }
        }
        public string Version
        {
            get
            {
                return (“0.5“);
            }
        }
        public void ShowAbout()
        {
            MessageBox.Show(“FinDataTools—分析家数据读取组件 V“ + Version+“\n\n        www.zhangwenzhang.com““关于“MessageBoxButtons.OK);
        }
        struct fileStruct
        {
            public string fileName;//文件名
            public int startAddressblockSizerecordSize;//起始地址,每块长度,记录长度
            public bool codeIsLong isIndexDataStruct;   //codeIsLong索引中的代码包含有市场代码SH、SZ等;isIndexDataStruct象Day.Dat那样的结构即由索引+数据组成; 
            public string[] fields;//字段
            public fileStruct(DataTypes fileType)
            {
                fileName = ““;
                startAddress = 0;
                blockSize = 0;
                recordSize = 0;
                codeIsLong = false;
                isIndexDataStruct = true;
                string fieldString = ““; //字段名,字段标签,类型,长度字段,存储顺序,偏移量
                switch (fileType)
                {

                    #region 代码表stkinfo51.dat
                    case DataTypes.dm:
                        fileName = “STKINFO51.DAT“;
                        startAddress = 0x845898;
                        blockSize = 0;
                        recordSize = 248;
                        codeIsLong = false;
                        isIndexDataStruct = false;
                        fieldString =
“dm代码code1000;“ +
“jc简称string32110;“ +
“py拼音string10242“;
                        break;
                    #endregion

评论

共有 条评论