logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
mumin16  
#1 Posted : Tuesday, March 17, 2009 5:12:03 AM(UTC)
mumin16

Rank: Member

Groups: Registered, Registered Users
Joined: 3/16/2009(UTC)
Posts: 10

iDate = DateTime.Now.Year * 10000 + DateTime.Now.Month * 100 + DateTime.Now.Day;

ZeroMemory(&psSecurityInfo,sizeof psSecurityInfo);
psSecurityInfo.dwTotalSize=sizeof MSFLSecurityInfo_struct;
lstrcpy(&psSecurityInfo.szName,"first" );
lstrcpy(&psSecurityInfo.szSymbol,"FIRST");
psSecurityInfo.cPeriodicity= "I";//intraday
psSecurityInfo.wInterval=60;60 sec
psSecurityInfo.bFlagged=1;//Units decimal, true

psSecurityInfo.wDataAvailable= MSFL_DATA_DATE + MSFL_DATA_TIME + MSFL_DATA_OPEN + MSFL_DATA_HIGH + MSFL_DATA_LOW + MSFL_DATA_CLOSE + MSFL_DATA_VOLUME;

psSecurityInfo.lFirstDate]= iDate;
psSecurityInfo.lLastDate]=iDate;

MSFL1_AddSecurity(pcDirNumber,&psSecurityInfo,0);


error: Primary Security not found : why?
Branden Russell  
#2 Posted : Tuesday, March 17, 2009 7:47:29 AM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

Same reason as your last post. You're using Read/Write functions (MSFL1_AddSecurity) and probably only have the Read Only version of the MDK.

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.