Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/11/2005(UTC) Posts: 37
Was thanked: 1 time(s) in 1 post(s)
|
Hello.
I think there's a bug in MS Pro 8.01. If you change the First Load Date in a daily Chart, the period changes from 68 (correct) to 81 (quarterly, incorrect). On version I have 9.1 no problems
You can verify the bug easily with this the small Prog:
BOOL __stdcall test(const MSXDataRec * a_psMasterData,
const MSXDataInfoRecArgsArray * a_psDataInfoArgs,
const MSXNumericArgsArray * a_psNumericArgs,
const MSXStringArgsArray * a_psStringArgs,
const MSXCustomArgsArray * a_psCustomArgs,
MSXResultRec * ResultRec)
{
const int l_iPeriod = a_psMasterData->iPeriod;
for(int CurrentBar = ResultRec->psResultArray->iFirstValid ; CurrentBar <= ResultRec->psResultArray->iLastValid ; CurrentBar++ )
{
ResultRec->psResultArray->pfValue[CurrentBar] =(float)(l_iPeriod);
}
if (*ResultRec->szExtendedError != NULL)
{
ResultRec->psResultArray->iFirstValid = 0;
ResultRec->psResultArray->iLastValid = -1;
return MSX_ERROR;
}
if (!IsLegalMSXArray(a_psMasterData, ResultRec->psResultArray))
{
strncpy (ResultRec->szExtendedError, "Internal Error: Corrupted a_psResult Array",
sizeof(ResultRec->szExtendedError)-1);
ResultRec->psResultArray->iFirstValid = 0;
ResultRec->psResultArray->iLastValid = -1;
return MSX_ERROR;
}
return MSX_SUCCESS;
}
Thanks
Chris
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.