再如MACD(12,26,9)的计算,TA-LIB对于前33个初始值是未定义的,国内股软计算初始值时则是根据已有的几根bar计算的
平均值比照MACD公式进行换算的。
---请问这句话是什么意思?我现在也用这个函数,但是算出的MACD值和行情软件里算出的对不上,不知道哪里有问题。能不能详细解释一下这个函数的用法?谢谢!
re: symbian 的ini文件类. 李浩 2008-09-05 09:25
是执行了,我是按你的调用方法调用的
re: symbian 的ini文件类. 李浩 2008-09-04 14:03
我也搞不懂了,呵呵,因为它在PutValue中是将指针压入到m_pIniElements.并不能释放,但是在我的模拟器上却是只有这样才能正常,非常搞不懂
类是有个bug 李浩 2008-09-04 09:33
TInt CIniFile::PutValue(const TDesC8 &p_Section, const TDesC8 &p_Key, const TDesC8 &p_Value )
{
IniElement *element = new(ELeave) IniElement;
.....
}
在整个函数中,element 没有释放,我在我的模拟器释放了就可以了
re: symbian 的ini文件类. 李浩 2008-09-02 17:39
lihao_nx@yahoo.com.cn
re: symbian 的ini文件类. 李浩 2008-09-02 16:54
对比了,它是能读,没有问题,只有写的时候,写进去了,只是在程序退出时才会报alloc错误
re: symbian 的ini文件类. 李浩 2008-09-02 15:26
要郁闷死了,我只是
打开文件
ifile->PutValue(_L8("account"),_L8("server"),_L8("lihao"));
关闭,这样可以操作,但是退出程序时提示有内存泄露,却找不着
re: symbian 的ini文件类. 李浩 2008-09-02 13:00
不是GetValue有问题,是PutValue有问题,我的代码中监测下来
re: symbian 的ini文件类. 李浩 2008-09-02 11:11
TBuf<128> sPath;
sPath.Format(_L("c:\\account.ini"));
CIniFile* ifile=CIniFile::NewL(sPath);
ifile->OpenIni();
TBuf8<255> sTemp;
//ifile->GetValue(_L8("account"),_L8("server"),sTemp);
//CEikEdwin* editor = (CEikEdwin*)(dlg->ControlOrNull(ESERVEREDTId));
//editor->GetText(iServer);
CEikEdwin* eds=static_cast< CEikEdwin *>(Control(ESERVEREDTId));
if (eds)
eds->GetText(iServer );
User::InfoPrint(iServer);
CEikEdwin* edu=static_cast< CEikEdwin *>(Control(EUSEREDTId));
if (edu)
edu->GetText(iUser );
User::InfoPrint(iUser);
CEikEdwin* edp=static_cast< CEikEdwin *>(Control(EPASSWORDEDTId));
if (edp)
edp->GetText(iPassword );
//User::InfoPrint(iPassword);
sTemp.Copy(iServer);
ifile->PutValue(_L8("account"),_L8("server"),sTemp);
sTemp.Copy(iUser);
ifile->PutValue(_L8("account"),_L8("user"),sTemp);
sTemp.Copy(iPassword);
ifile->PutValue(_L8("account"),_L8("password"),sTemp);
//static_cast< CAknQueryControl*>(Control())->GetText(iUser );
//static_cast< CAknQueryControl*>(Control())->GetText(iPassword );
ifile->CloseIni();
delete ifile;
ifile=NULL;
我这样调用有错吗?我这边模拟器中会因为这个而出错