DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: SafeArray

  1. #1
    Manoj Guest

    SafeArray


    Hi,

    I am working to make an COM object that will be called from ASP and i want
    to pass structure that containts different data type.Its not possible to
    send all these parmeters as individual as the no of arguments are around
    20.One way is to pass through SAFEARRY but can any one give some other idea
    to pass these arguments without SAFEARRY.What i know is that i have to pass
    it by VARIANT but can any one explain if there is a way?

    Thanks
    Manoj


  2. #2
    Neil Schulman Guest

    Re: SafeArray


    You're going to need to stick with SAFEARRAY. Microsoft packages all arrays
    in ASP/VBA as SAFEARRAYs so you'll need to handle that. Now, a VARIANT can
    also point to a SAFEARRAY, so in your server you'll need to unpack it. If
    you're using VC++, you might hop to CodeGuru at http://codeguru.earthweb.com/atl/csafe.shtml
    for some stuff on handling SAFEARRAYs.

    Neil

    "Manoj" <king_m1@yahoo.com> wrote:
    >
    >Hi,
    >
    >I am working to make an COM object that will be called from ASP and i want
    >to pass structure that containts different data type.Its not possible to
    >send all these parmeters as individual as the no of arguments are around
    >20.One way is to pass through SAFEARRY but can any one give some other idea
    >to pass these arguments without SAFEARRY.What i know is that i have to pass
    >it by VARIANT but can any one explain if there is a way?
    >
    >Thanks
    >Manoj
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center