[Tutor] Question about output parameters
Jeremy Howard
JeremyHo@flashcom.com
Tue, 22 Feb 2000 07:22:37 -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_01BF7D48.A6A43F44
Content-Type: text/plain;
charset="iso-8859-1"
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_01BF7D48.A6A43F44
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>Question about output parameters </TITLE>
</HEAD>
<BODY>
<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. Here is the code I'm =
using.....</FONT>
</P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">>>> =
import win32com.client</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">>>> =
objSiebel =3D =
win32com.client.Dispatch("SiebelDataServer.ApplicationObject")=
</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">>>> err =
=3D 0</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">>>> conf =
=3D "C:\\Siebel\\bin\\psblprd.cfg"</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier">>>> =
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"> File =
"<interactive input>", line 0, in ?</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier"> File =
"<COMObject SiebelDataServer.ApplicationObject>", 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. The Second is the value returned from the fuction and is =
an Integer. 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_01BF7D48.A6A43F44--