[Tutor] FW: Question about output parameters

Jeremy Howard JeremyHo@flashcom.com
Tue, 22 Feb 2000 08:53:03 -0800


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF7D55.490CE61C
Content-Type: text/plain;
	charset="iso-8859-1"



>  -----Original Message-----
> From: 	Jeremy Howard  
> Sent:	Tuesday, February 22, 2000 7:23 AM
> To:	'tutor@python.org'
> Subject:	Question about output parameters 
> 
> Hello all,
> 
> 
> 
> I've got a question regarding Python and the way it handles output
> parameters.  Here is the code I'm using.....
> 
> >>> import win32com.client
> >>> objSiebel =
> win32com.client.Dispatch("SiebelDataServer.ApplicationObject")
> >>> err = 0
> >>> conf = "C:\\Siebel\\bin\\psblprd.cfg"
> >>> objSiebel.LoadObjects(conf, err)
> 
> when I fire off the last line I get this error....
> 
> Traceback (innermost last):
>   File "<interactive input>", line 0, in ?
>   File "<COMObject SiebelDataServer.ApplicationObject>", line 2, in
> LoadObjects
> com_error: (-2147352571, 'Type mismatch.', None, 2)
> 
> the LoadObjects Function requires two parameters the first one is the
> location of the config file and is a string.  The Second is the value
> returned from the fuction and is an Integer.  Anyone have any ideas on
> ways to get around this error.
> 
> Jeremy Howard
> jeremyho@flashcom.com
> 
> 

------_=_NextPart_001_01BF7D55.490CE61C
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>FW: Question about output parameters </TITLE>
</HEAD>
<BODY>
<BR>
<BR>

<P><FONT FACE=3D"Arial"></FONT>&nbsp;<FONT SIZE=3D1 =
FACE=3D"Tahoma">-----Original Message-----</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Tahoma">From: &nbsp;</FONT></B> <FONT =
SIZE=3D1 FACE=3D"Tahoma">Jeremy Howard&nbsp; </FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Tahoma">Sent:&nbsp;&nbsp;</FONT></B> =
<FONT SIZE=3D1 FACE=3D"Tahoma">Tuesday, February 22, 2000 7:23 =
AM</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=3D1 =
FACE=3D"Tahoma">'tutor@python.org'</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT=
></B> <FONT SIZE=3D1 FACE=3D"Tahoma">Question about output parameters =
</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello all,</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">I've got a question regarding Python =
and the way it handles output parameters.&nbsp; Here is the code I'm =
using.....</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">&gt;&gt;&gt; =
import win32com.client</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">&gt;&gt;&gt; =
objSiebel =3D =
win32com.client.Dispatch(&quot;SiebelDataServer.ApplicationObject&quot;)=
</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">&gt;&gt;&gt; err =
=3D 0</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">&gt;&gt;&gt; conf =
=3D &quot;C:\\Siebel\\bin\\psblprd.cfg&quot;</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">&gt;&gt;&gt; =
objSiebel.LoadObjects(conf, err)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">when I fire off the last line I get =
this error....</FONT>
</P>

<P><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">Traceback =
(innermost last):</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">&nbsp; File =
&quot;&lt;interactive input&gt;&quot;, line 0, in ?</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">&nbsp; File =
&quot;&lt;COMObject SiebelDataServer.ApplicationObject&gt;&quot;, line =
2, in LoadObjects</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">com_error: =
(-2147352571, 'Type mismatch.', None, 2)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">the LoadObjects Function requires two =
parameters the first one is the location of the config file and is a =
string.&nbsp; The Second is the value returned from the fuction and is =
an Integer.&nbsp; Anyone have any ideas on ways to get around this =
error.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Jeremy Howard</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">jeremyho@flashcom.com</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01BF7D55.490CE61C--