in Search

referencing the symbol field in MSXDataRec [RESOLVED]

Last post 06-08-2006, 13:13 by wabbit. 1 replies.
Sort Posts: Previous Next
  •  06-07-2006, 23:57 17980

    referencing the symbol field in MSXDataRec [RESOLVED]

    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
  •  06-08-2006, 13:13 17991 in reply to 17980

    Re: referencing the symbol field in MSXDataRec [RESOLVED]

    As we discussed in PM and SkyPE, for C++:

    a_psDataRec->pszSymbol;




    wabbit :D

    "The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
    Edsgar W. Dijkstra

     

    MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC C, 11 PRO w/QC & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status :
    My SkyPE account : wabbit.com.au

View as RSS news feed in XML