Subject: hresult func4 ([out] BSTR * pval) in ATL; why can't I return the value for a call? Is JavaScript not supported?
Http://topic.okbase.net/200902/2009020414/3557980.html
Subject: hresult func4 ([out] BSTR * pval) in ATL; why can't I return the value for a call? Isn't JavaScript supported? Author: Sun Reply times: 5 Published at: 14:47:38 Body content: The webpage is called using JavaScript. OCX. func4 (editinput. value ); The atlocx code is Stdmethodimp cgtidr: func4 (BSTR * Str) { // Todo: add your implementation code here _ Bstr_t T1 = "ZZZZ "; * STR = sysallocstring (static_cast <const wchar_t *> (T1 )); Return s_ OK; } |
Not supported. Upload an object.
What should I do? Key Interfaces are not set by other manufacturers.
VBScript support...
I wrote one, but I don't understand vbscirpt, saying that the method of passing parameters is incorrect. Please take a look.
<HTML>
<Head> <title> A simple homepage </title>
<Script language = "VBScript">
<! --
Sub button1_onclick
Dim Str
Gt2icrocx. func7 Str
Msgbox Str
End sub
-->
</SCRIPT>
</Head>
<Body>
& Lt; TD width = "112" align = "center" & gt;
<Object name = "gt2icrocx" width = "102" Height = "126"
Classid = "CLSID: 1da02fa9-c111-4bea-9401-ec883b11051c"
>
</Object>
</TD>
<H3> A simple homepage <Form> <input name = "button1" type = "button" value = "Click here"> </form>
</Body>
</Html>
|
Reply to: Haisheng |
15:33:34 |
Re: hresult func4 ([out] BSTR * pval) in ATL; why can't I return the value when I call it? Is it Jav...
You 'd better use the [Return] [out] parameter type for out-of-box transfer. I have done this successfully.
Subject: hresult func4 ([out] BSTR * pval) in ATL; why can't I return the value for a call? Isn't JavaScript supported? Author: Sun Reply times: 5 Published at: 14:47:38 Body content: The webpage is called using JavaScript. OCX. func4 (editinput. value ); The atlocx code is Stdmethodimp cgtidr: func4 (BSTR * Str) { // Todo: add your implementation code here _ Bstr_t T1 = "ZZZZ "; * STR = sysallocstring (static_cast <const wchar_t *> (T1 )); Return s_ OK; } |
Not supported. Upload an object.
What should I do? Key Interfaces are not set by other manufacturers.
VBScript support...
I wrote one, but I don't understand vbscirpt, saying that the method of passing parameters is incorrect. Please take a look.
<HTML>
<Head> <title> A simple homepage </title>
<Script language = "VBScript">
<! --
Sub button1_onclick
Dim Str
Gt2icrocx. func7 Str
Msgbox Str
End sub
-->
</SCRIPT>
</Head>
<Body>
& Lt; TD width = "112" align = "center" & gt;
<Object name = "gt2icrocx" width = "102" Height = "126"
Classid = "CLSID: 1da02fa9-c111-4bea-9401-ec883b11051c"
>
</Object>
</TD>
<H3> A simple homepage <Form> <input name = "button1" type = "button" value = "Click here"> </form>
</Body>
</Html>
|
Reply to: Haisheng |
15:33:34 |
Re: hresult func4 ([out] BSTR * pval) in ATL; why can't I return the value when I call it? Is it Jav...
You 'd better use the [Return] [out] parameter type for out-of-box transfer. I have done this successfully.