ActiveX & parameters

G

g.franzkowiak

Hello everybody,

my little problem resurfaced together with COM.
The generated .py file contains the following function:

def showApplication(self, show=defaultNameNotOptArg):
return self._oleobj_.InvokeTypes(.......,show)

The value for "show" (defaultNameNotOptArg) must be True|False.
I read in Mark Hammonds book the part over python objects and VARAIANT
types. There is True|False the the way for translation to VT_BOOL.

Now I use myOCX.showApplication(False)... but nothing, I can see the
application anyime ?
I tried it with ctypes and "ctypes.c_short(False)" but the same :-(

If I use functions without parameters or functions with string parameter
from the generated .py file, then is the sequence as expected.

Can anybody explain my mistake ?

gerd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,275
Messages
2,571,381
Members
48,070
Latest member
nick_tyson

Latest Threads

Top