tag:blogger.com,1999:blog-522893824150574022.post4250073234326703048..comments2023-06-02T07:15:00.815+02:00Comments on Programming by Krizz: JScript arrays and COM objects, part 3Anonymoushttp://www.blogger.com/profile/02591842280854638602noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-522893824150574022.post-59268000658178110022011-10-29T08:12:26.065+02:002011-10-29T08:12:26.065+02:00thank you for the information is very helpful at a...thank you for the information is very helpful at allaryahttp://ocw.gunadarma.ac.idnoreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-52211953071986571672008-08-14T06:07:00.000+02:002008-08-14T06:07:00.000+02:00Thanks this is exactly what I was looking for.Than...Thanks this is exactly what I was looking for.<BR/>Thanks again.<BR/><BR/>-Echo<BR/>http://www.echo.net84.net/Unknownhttps://www.blogger.com/profile/17255301892468351304noreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-54473143188974339662008-05-28T15:13:00.000+02:002008-05-28T15:13:00.000+02:00Hi,Thanks for this post. I want to pass array from...Hi,<BR/>Thanks for this post. I want to pass array from Javascript to C# component , is it possible ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-76059365886164690902008-01-25T00:04:00.000+01:002008-01-25T00:04:00.000+01:00Unable to compile this line:ss GetIDsOfNames(IID_N...Unable to compile this line:<BR/><BR/>ss << ind =" CComBSTR(ss.str().c_str());">GetIDsOfNames(IID_NULL, &ind, 1, LOCALE_USER_DEFAULT, &id));<BR/><BR/>Will you please simplify it? What is the value of 'ind' here?<BR/><BR/>I am unable to break that line into simpler statements.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-53829620322674052232007-11-07T09:10:00.000+01:002007-11-07T09:10:00.000+01:00I'm using MFC Active X control. I think the datayp...I'm using MFC Active X control. I think the dataype may be the same. I try it with ATL. Thanks.Pedro Fracahttps://www.blogger.com/profile/08139152088410629645noreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-53166579326164793902007-11-06T17:06:00.000+01:002007-11-06T17:06:00.000+01:00Are you using ATL?Are you using ATL?Anonymoushttps://www.blogger.com/profile/02591842280854638602noreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-4841771330569894052007-11-06T16:59:00.000+01:002007-11-06T16:59:00.000+01:00How you publish the method???. Do you use the nex ...How you publish the method???. Do you use the nex function?.<BR/>DISP_FUNCTION( CSample1Ctrl, "showArray", showArray, VT_I2,VTS_PVARIANT)<BR/><BR/>I think the problems is in the parameter that i export.<BR/><BR/>ThanksPedro Fracahttps://www.blogger.com/profile/08139152088410629645noreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-51813164731047882007-11-06T14:30:00.000+01:002007-11-06T14:30:00.000+01:00Hi, I'm trying to implement your code and I have t...Hi, I'm trying to implement your code and I have the next problem. <BR/><BR/>I publish the function to the javascript with this code.<BR/><BR/>DISP_FUNCTION( CSample1Ctrl, "showArray", showArray, VT_I2,VTS_VARIANT )<BR/><BR/>My JavaScript code is the next:<BR/><BR/> var c = new Array();<BR/> c.push(3);<BR/> c.push(3);<BR/> c.push(3);<BR/> c.push(3);<BR/> c.push(3);<BR/> alert(c.length);<BR/> Pedro Fracahttps://www.blogger.com/profile/08139152088410629645noreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-69357964437781403922007-11-05T13:30:00.000+01:002007-11-05T13:30:00.000+01:00Actually it's the same problem.You need to return ...Actually it's the same problem.<BR/>You need to return and IDispatch object which return array's element by pairt of GetIDsbyName and Invoke methods.Anonymoushttps://www.blogger.com/profile/02591842280854638602noreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-54997285508392191412007-11-05T13:17:00.000+01:002007-11-05T13:17:00.000+01:00I have de reverser problem, return an Array to Jav...I have de reverser problem, return an Array to JavaScript. I'm trying with variant. Do you knwo any way?Pedro Fracahttps://www.blogger.com/profile/08139152088410629645noreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-55561334101568415412007-09-24T10:01:00.000+02:002007-09-24T10:01:00.000+02:00Yes, you are right. Javascript is not capable of ...Yes, you are right. Javascript is not capable of sinking ActiveX events, nor are any routines to do so included in GD API. All you can do is to write your own ActiveX (hybrid) object where you hook events and forward it to JScript function.Anonymoushttps://www.blogger.com/profile/02591842280854638602noreply@blogger.comtag:blogger.com,1999:blog-522893824150574022.post-5088399243586825422007-09-24T05:34:00.000+02:002007-09-24T05:34:00.000+02:00I have developed a desktop gadget that utilizes an...I have developed a desktop gadget that utilizes an ActiveX object. I have no problem sending data to the ActiveX object. However, I see no way register callbacks from the object. Google's desktop javascript engine, seems lacking in this respect. Thoughts?Anonymousnoreply@blogger.com