Passing System::Object to an ActiveX function. RRS feed

  • Question

  • Hi,

    I am stuck on a problem with pasing an argument to a function. I am using Visual C++ Express Edition and I imported an Active X component. It has a function like this:

    Virtual Bool AxTRIOPCLib::AxTrioPC::GetTable( int Val1, int Val2 , System Object ^% Values)

    Can sombody tell me how I can declare and pass an object to it and then later convert returned values into Double? I cannot find any examples and I am not so experienced with . NET objects. This function is supposed to return an array of doubles that is Val1 long.

    Thanks a lot,

    Thursday, May 11, 2006 3:29 PM