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:
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.