Tom's Hardware > Forum > Smartphones & PDAs > Multimedia > Activex jscript problem...urgent

Activex jscript problem...urgent

Forum Smartphones & PDAs : Multimedia - Activex jscript problem...urgent

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

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

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Smartphones & PDAs > Multimedia > Activex jscript problem...urgent
Go to:

There are 653 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them