by a-nlewi » Sat, 19 Feb 2005 05:36:36
If you specified the second parameter in the IDL using [out, retval], then
you will only need one parameter in the JScript code. The correct IDL
definition would be something like:
[
object,
uuid( ...your GUID here... ),
dual,
helpstring("IComObject Interface"),
pointer_default(unique)
]
interface IComObject : IDispatch
{
[
id(1),
helpstring("Returns the requested object interface.")
]
HRESULT GetInterface( [in] BSTR bstrObj, [out, retval] VARIANT*
pvarObj );
};
I'm not sure if there are plans to create a sample for this workaround, but
a KB has been requested.
---
Nathan Lewis
Microsoft Mobile and Embedded Devices Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?U2hsb21p?= < XXXX@XXXXX.COM >
Subject: RE: XMLHTTP doesn't work, I'm getting access denied
Date: Thu, 17 Feb 2005 03:15:01 -0800
I'm trying to implement your solution, I've created the dll and loaded it
to
the iPaq, I'm getting an error from Javascript for sending the wrong number
of parameters for the GetInterface method. From what I understand
GetInterface should return the object in pvarObj, who do I use that in
Javascript?
Does Microsoft intend to distribute a solution for this problem?
"Nathan Lewis" wrote:
and
workaround,
must
your
object
rights.
uses
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 If you specified the second parameter in the IDL using [out, retval], then you will only need one parameter in the JScript code. The correct IDL definition would be something like:
\par
\par [
\par object,
\par uuid( ...your GUID here... ),
\par dual,
\par helpstring("IComObject Interface"),
\par pointer_default(unique)
\par ]
\par interface IComObject : IDispatch
\par \{
\par [
\par id(1),
\par helpstring("Returns the requested object interface.")
\par ]
\par HRESULT GetInterface( [in] BSTR bstrObj, [out, retval] VARIANT* pvarObj );
\par \};
\par
\par
\par I'm not sure if there are plans to create a sample for this workaround, but a KB has been requested.
\par
\par
\par ---
\par
\par Nathan Lewis
\par Microsoft Mobile and Embedded Devices Developer Support
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par
\par \pard\li720 --------------------
\par From: =?Utf-8?B?U2hsb21p?= < XXXX@XXXXX.COM >
\par Subject: RE: XMLHTTP doesn't work, I'm getting access denied
\par Date: Thu, 17 Feb 2005 03:15:01 -0800
\par
\par
\par I'm trying to implement your solution, I've created the dll and loaded it to
\par the iPaq, I'm getting an error from Javascript for sending the wrong number
\par of parameters for the GetInterface method. From what I understand
\par GetInterface should return the object in pvarObj, who do I use that in
\par Javascript?
\par
\par Does Microsoft intend to distribute a solution for this problem?
\par
\par "Nathan Lewis" wrote:
\par
\par > This is a known problem which affects certain builds of Pocket PC 2003 and
\par > all builds of Pocket PC 2003 Second Edition. The wor