OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Alexandre Oliveira (alexandre.oliveira_at_CYRNEL.COM.BR)
Date: Fri Oct 25 2002 - 09:04:56 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi Friends,

    I have a question that may seems to be idiot for most of you but have
    been very hard for me to solve:

    How may I pass to/from a vector of doubles and integer from a client to
    a server (and vice-versa) with DCOM.

    I have a function with following IDL:

    [helpstring("method GetPortfolio")] HRESULT GetPortfolio([in] long
    nPortfolioID, [in] long nMax, [in, out] long *pCount, [out,
    size_is(nMax)] long *pID, [out, size_is(nMax)] double *pVal, [out,
    retval] long *pErrCode);

    the C++ prototype is:

    STDMETHOD(GetPortfolio)(/*[in]*/ long nPortfolioID, /*[in]*/ long nMax,
    /*[out]*/ long *count, /*[in, out]*/ long *pID, /*[in, out]*/ double
    *pAmount, /*[out]*/ long *pErrCode);

    I can transfer only the first integer/double of the vector

    Do you have any idea on what is happening? If required I may send other
    information.

    Thanks,
    Alexandre
    Brazil

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM