91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

一款用于證券股票行情分析的軟件(提供源代碼).內(nèi)有系統(tǒng)概要設(shè)計說明書,用VC6編寫,對于想做證券股票行情分析軟件的同志很有參考學(xué)習(xí)價值。

資源截圖

代碼片段和文件信息

//?AfficheFile.cpp:?implementation?of?the?CAfficheFile?class.
//
//////////////////////////////////////////////////////////////////////

#include?“stdafx.h“
#include?“WH.h“
#include?“AfficheFile.h“

#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif

#define?MAXHEADLEN 60
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////

CAfficheFile::CAfficheFile(LPCTSTR?lpsz)
{
sFileName =?lpsz;
m_bOpen =?FALSE;
}

CAfficheFile::~CAfficheFile()
{
OnRemoveFileAll();
if(m_bOpen)?m_File.Close();
}

BOOL?CAfficheFile::OnOpenFile()
{
CString?sPath?=?sFileName;

CFileFind?finder;
if(!finder.FindFile(sPath))
{
m_File.Open(sPath?CFile::modeCreate?|?CFile::modeWrite?|?CFile::typeBinary);
}
else
{
try
{
m_File.Open(sPath?CFile::modeReadWrite?|?CFile::typeBinary);
}
catch(CFileException?*e)
{
AfxMessageBox(“NOT“);
return?FALSE;
}
}

m_bOpen?=?TRUE;
return?TRUE;
}

void?CAfficheFile::OnAddNew(char*?lpsz?int?size)
{
ASSERT(lpsz?!=?NULL);
if(!OnOpenFile())?return;

m_File.SeekToEnd();
m_File.Write(&size?sizeof(int));
m_File.Write(lpsz?size);

m_File.Close();
m_bOpen?=?FALSE;
}

void?CAfficheFile::OnDeleteAll()
{
if(!OnOpenFile())?return;
m_File.Remove(sFileName);

m_File.Close();
m_bOpen?=?FALSE;
}

void?CAfficheFile::OnRefashFile()
{
if(!OnOpenFile())?return;
OnRemoveFileAll();
// if(m_File.GetLength()?==?0)?return;

int?size;
/////////////////////////////////////////////////////////////////
m_File.SeekToBegin();
for(int?i?=?0;?;?i++)
{
PAFFICHEFILE?pAffiche?=?new?AFFICHEFILE;
// memset(pAffiche?0?sizeof(AFFICHEFILE));
if(m_File.Read(&size?sizeof(int))?!=?0)
{
char?*lp?=?(char?*)malloc(sizeof(char)*(size+1));
memset(lp?‘\0‘?size?+?1);
m_File.Read(lp?size);
pAffiche?=?OnTransStruct(lp?size);
free(lp);
m_FileMap[i]?=?pAffiche;
}
else?
{
if(pAffiche)?delete?pAffiche;
break;
}
}

m_File.Close();
m_bOpen?=?FALSE;
}

PAFFICHEFILE?CAfficheFile::OnTransStruct(char?*lp?int?size)
{
PAFFICHEFILE?pAff?=?new?AFFICHEFILE;
CString?str?=?lp;
pAff->sContext?=?str.Left(size);
// pAff->sContext?+=?‘\0‘;
pAff->sCode ???=?_T(““);
CString?s?=?0x20;
int?head_count?=?str.FindOneOf(s);
if(head_count?==?-1)?head_count?=?size;
if(head_count?>?MAXHEADLEN)
{
head_count?=?MAXHEADLEN;
pAff->sHead?=?str.Left(head_count);
pAff->sHead?+=?“......“;
}
{
pAff->sHead?=?str.Left(head_count?-?4);
CString?str(‘.‘?MAXHEADLEN?-?head_count?+?4?);
pAff->sHead?+=?str;
}

int?nstart =?str.FindOneOf(“(“);
int?nend =?str.FindOneOf(“)“);

if(nstart?!=?-1?&&?nend?!=?-1?&&?nend?>?nstart)
{
pAff->sCode?=?str.Mid(nstart?+?1?nend?-?nstart?-?1);
}


return?pAff;
}

void?CAffic

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????目錄??????????0??2007-06-24?10:55??分析軟件源碼

?????文件???????3352??2004-03-08?16:34??分析軟件源碼\AfficheFile.cpp

?????文件???????1358??2003-07-15?09:28??分析軟件源碼\AfficheFile.h

?????文件?????????16??2006-11-10?12:24??分析軟件源碼\AlarmResult.alm

?????文件???????4244??2004-03-08?16:34??分析軟件源碼\alcIndex.cpp

?????文件???????1652??2003-07-15?09:28??分析軟件源碼\alcIndex.h

?????文件???????2205??2003-07-15?09:28??分析軟件源碼\animategifimage.cpp

?????文件???????2038??2003-07-15?09:28??分析軟件源碼\animategifimage.h

?????文件??????10087??2004-03-08?16:34??分析軟件源碼\AutoRichEditCtrl.cpp

?????文件???????2704??2003-07-15?09:28??分析軟件源碼\AutoRichEditCtrl.h

?????文件??????14096??2004-03-08?16:34??分析軟件源碼\BGridCtrl.cpp

?????文件???????1589??2003-07-15?09:28??分析軟件源碼\BGridCtrl.h

?????文件????????864??2004-03-08?16:34??分析軟件源碼\BjChenBenSetting.cpp

?????文件????????707??2003-07-15?09:28??分析軟件源碼\BjChenBenSetting.h

?????文件???????1347??2004-03-08?16:34??分析軟件源碼\BjDlgAddData.cpp

?????文件???????1277??2003-07-15?09:28??分析軟件源碼\BjDlgAddData.h

?????文件???????5937??2004-03-08?16:34??分析軟件源碼\BjDlgChengBenSetting.cpp

?????文件???????1784??2003-07-15?09:28??分析軟件源碼\BjDlgChengBenSetting.h

?????文件?????149828??2005-04-01?20:47??分析軟件源碼\blockinfo.dat

?????文件???????6067??2004-03-08?16:34??分析軟件源碼\BlockTypeManager.cpp

?????文件???????1179??2003-07-15?09:28??分析軟件源碼\BlockTypeManager.h

?????文件???????4161??2003-07-15?09:28??分析軟件源碼\BrowseForFolder.cpp

?????文件???????5609??2003-07-15?09:28??分析軟件源碼\BrowseForFolder.h

?????文件??????22341??2003-07-15?09:28??分析軟件源碼\BtnST.cpp

?????文件???????6589??2003-07-15?09:28??分析軟件源碼\BtnST.h

?????文件???????8761??2004-07-09?21:41??分析軟件源碼\ByjDrawRightRect.cpp

?????文件???????1478??2003-07-15?09:28??分析軟件源碼\ByjDrawRightRect.h

?????文件??????14056??2004-03-08?16:34??分析軟件源碼\CaiwuData.cpp

?????文件???????1668??2003-07-15?09:28??分析軟件源碼\CaiwuData.h

?????文件???????3262??2004-03-08?16:34??分析軟件源碼\CAlertPopDlg.cpp

............此處省略621個文件信息

評論

共有 條評論