Subject: hresult func4 ([out] BSTR * pval) in ATL; why can't I return the value for a call? Is JavaScript not supporting http://topic.okbase.net/

Source: Internet
Author: User

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;
}
 




Reply to: hyj 15:02:27

Not supported. Upload an object.



Reply to: Sun 15:03:53

What should I do? Key Interfaces are not set by other manufacturers.



Reply to: hyj 15:07:16

VBScript support...



Reply to: Sun 15:08:30

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;
}
 




Reply to: hyj 15:02:27

Not supported. Upload an object.



Reply to: Sun 15:03:53

What should I do? Key Interfaces are not set by other manufacturers.



Reply to: hyj 15:07:16

VBScript support...



Reply to: Sun 15:08:30

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.