Tom's Hardware Forums » PDA » Multimedia » Activex jscript problem...urgent
 

Activex jscript problem...urgent

Add a reply



 Word :   Username :  
 
Bottom
Author
 Thread : Activex jscript problem...urgent
 
More Information

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

 

Hi,

I am working on pocketPc 2003, windows mobile second edition. I am using
embedded visual c++ 4.0.

I need to pass few strings from a html file(essentially a JScript) to
activeX control. The params can be passed via "Param"

or through the function() which ever way as far as it gets done. The
Jscript will be:
<OBJECT
ID="AXSample"
CLASSID="clsid:546E636A-DD23-4E22-A6F7-07AD4CB96642"
WIDTH=100
HEIGHT=100
>
<PARAM NAME="Param1" VALUE="Hello world">
</OBJECT>

<SCRIPT LANGUAGE="JScript">
function fillColorChange()
{
AXSample.Param1 = "Hello world..just do it";
AXSample.functionAcceptsString("Please accept me" );

}
</SCRIPT>

I tried this with the activeX control being written in evc++. I have used
the ActiveX sample provided with the microsoft's

SDK for it. The "Param1" in my activeX component is being implemented as a
property, in form of TCHAR* and

functionAcceptsString() also a function which accepts TCHAR*. but somehow
this doesnt seem to work. Next i am going to try

with variants but i am not sure if its going to work either. Following is
the sample code:

// IAXSampleCtl
STDMETHOD(put_Param1)(TCHAR*crFill);
STDMETHOD(get_Param1)(TCHAR** pcrFill);

STDMETHOD(functionAcceptsString)(TCHAR*crFill);

I guess i m making a really silly mistake or ???

I tried running this code on emulator. It works with "integer" params but
doesnt work for strings. Even with integers it

works with only one param, if I pass multiple params it doesnt work fine.
This is really urgent... i will really appreciate if anyone can give me a
sample code(with variant/TCHAR) or at least a pointer to the documentation
indicating how it can be done.

I hope Neil or anyone can help me out

Krunal

--
Message posted via http://www.pocketpcjunkies.com

Related Pr oduct
Register or log in to remove.


Go to:
Add a reply
  Tom's Hardware Forums » PDA » Multimedia » Activex jscript problem...urgent
 

Google Ads
Ad