return 2 values by method in ActiveX project
-
hi, I'm writing a ActiveX(OCX file) project in VC6 ,I want create one method in my project, this method have 2 parameters change in this method ,then when call this method in any language ( example delphi) I want see value change in these parameters , In fact I want my method return 2 strings value . I don't know type these parameters and ... thanks for any answer.
-
hi, I'm writing a ActiveX(OCX file) project in VC6 ,I want create one method in my project, this method have 2 parameters change in this method ,then when call this method in any language ( example delphi) I want see value change in these parameters , In fact I want my method return 2 strings value . I don't know type these parameters and ... thanks for any answer.
Accept these two parameters by reference / pointer (out parameter).
[id(1), helpstring("XXXX")] HRESULT foo([out,retval] long* out1, [out,retval] long* out2);
Regards, Paresh. -
Accept these two parameters by reference / pointer (out parameter).
[id(1), helpstring("XXXX")] HRESULT foo([out,retval] long* out1, [out,retval] long* out2);
Regards, Paresh.thanks for your help paresh, but, my project is AcriveX in Visual C++ 6 , and I create my method by classwizard, in classwizard type parameters is limited by combobox and have not this type ("[out,retval] long* out1") but I write this type manual and build my project , VC6 give error syntax error : '[' regards