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

Notification

Icon
Error

Options
Go to last post Go to first unread
jtrevatt  
#1 Posted : Wednesday, June 7, 2006 11:57:16 PM(UTC)
jtrevatt

Rank: Member

Groups: Registered, Registered Users
Joined: 5/25/2006(UTC)
Posts: 13
Location: Brisbane, Australia

Hi, I have pasted below the guts of a function I am having issues with. Essentially I want to get the value of the 'Symbol' field in the MSXDataRec structure. Its all in PowerBASIC which is a bit new to me. I am declaring the s_Symbol as ASCIIZ * 10 because it seems that that type demands a length. Perhaps someone knows what the correct length is? The function works in that it returns the string MSXIDS. I just want to be sure that when I move from using MSXTest to the real thing that it actually returns the symbol Im using... I get the feeling that Im not referencing it properly. FUNCTION ExportSignal SDECL ALIAS "ExportSignal" _ (BYVAL a_psDataRec AS MSXDataRec PTR, _ BYVAL a_psDataInfoArgs AS MSXDataInfoRecArgsArray PTR, _ BYVAL a_psNumericArgs AS MSXNumericArgsArray PTR, _ BYVAL a_psStringArgs AS MSXStringArgsArray PTR, _ BYVAL a_psCustomArgs AS MSXCustomArgsArray PTR, _ BYVAL a_psResultRec AS MSXResultRec PTR) EXPORT AS LONG DIM s_Symbol AS ASCIIZ * 10 LOCAL l_psDataRec AS MSXDataRec PTR s_Symbol = @a_psDataRec.@pszSymbol OutputDebugString("Enigma_Symbol - " & s_Symbol) END FUNCTION
wabbit  
#2 Posted : Thursday, June 8, 2006 1:13:19 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
As we discussed in PM and SkyPE, for C++: a_psDataRec->pszSymbol; wabbit :D
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.