利用类向导为控件添加方法,
传递的参数可以指定为double *,int *等等,
假设设定为double *;但是利用ActiveX Control Test Container调试的时候,点Invoke Methods,发现参数类型变为VT_EMPTY,那么怎样给指针参数Set Value来进行调试呢?

解决方案 »

  1.   

    use safearray
    http://www.codeguru.com/activex/csafe.shtml
    A Simple SafeArray Wrapper - Praveen S. Kumar (1999/07/18)
    http://www.codeguru.com/activex/sending_com_arrays.shtml
    Using COM to Pass Arrays - Jeff Lundgren (1998/11/08) 
    http://www.codeguru.com/activex/multiarray.shtml
    Using a Multidimensional SAFEARRAY to pass data across from COM objects - Aravind Corera (1998/11/10) 
    http://www.codeguru.com/activex/safearray.shtml
    Passing DYNAMIC Data QUICKLY using SafeArrays - 2 - Andrew Schafer (1999/02/14)
    http://www.codeguru.com/activex/comarray_struct.shtml
    Passing arrays of structures in COM - Reg Anderson (1999/03/05)
      

  2.   

    当然可以用指针,调试的时候写个小程序吧(最终还是要在别的程序中使用的嘛),不要指望微软的ActiveX Control Test Container能作一切事情。
      

  3.   


    learn and attention and up