|
by: Marc ENGEL |
last post by:
Hi all,
I coded a python COM object that runs in a pythonw local server as a
STA.
This object creates and advises a VC++ COM object to receive its
event. Those events are sent by worker threads.
The VC++ object is free threaded. As a consequence call between my STA
python object and apartment are marshalled through proxy.
|
by: Ashley |
last post by:
I have quite a few COM servers implemented using Visual C++ 6.0 and
I'm having trouble accessing all of them via Python. The problem is
with the default being set to pythoncom.Empty while my servers
require pythoncom.Missing.
According to this article:
http://mailman.pythonpros.com/pipermail/pycom-dev/1999q2/000127.html
compatibility with Microsoft products requires pythoncom.Empty. I'm
wondering if anyone knows how I can change my...
|
by: John J. Lee |
last post by:
Dear,
I have problems when I get the IDispatch with pythoncom.connect().
When I called the 'Excel.Application' with it, it worked. (At least I can
see the pythoncom.connect() is working for the well-designed COM like
Excel.)
When I called my COM module which was derived from IDispatch interface,
the pythoncom.connect() issued error like
com_error: (-2147221021, 'Operation unavailable', None, None).
|
by: Brian Hlubocky |
last post by:
I'm have a fairly simple (in terms of COM) python program that pulls
info from an Access database and creates Outlook contacts from that
information. It uses wxPython for gui and works without problems.
I want to be able to distribute this program using py2exe, but I am
having some problems. I am using a simple setup.py like in the
documentation for the py2exe tool and everything compiles ok, except
that when I run the exe, I get an...
|
by: UlleAcki |
last post by:
Hi,
in my Python program I have to use a COM-Server. One method of the COM
class needs a SAFEARRAY of a special type as parameter.
Trying to create such an array and calling the method results in a
MemoryError.
Is it possible with pythoncom to use a SAFEARRAY(<mytype>)* as
parameter? If yes, how can I achieve this?
Thanks in advance, Ulf
|
|
by: fraca7 |
last post by:
Hello. I got a little problem while using pythoncom to automate IE; for
some reason, changing the 'selectedIndex' on an instance of
IHTMLSelectElement doesn't fire the 'onchange' event (I guess this is a
bug in mshtml).
So, I tried to get the 'onchange' event handler and call it myself.
According to the docs, this is a simple IDispatch implementation and
calling Invoke() should do the trick; I actually have a working example
of this in...
|
by: ChristianHahn |
last post by:
Hi,
I inherited a piece of code, that doesn't work anymore. It's a
COM-object.
One interface method opens a modal dialog ( OpenDialog() ), with the
other methods one can set the values for a ComboBox or query the input
of the user.
This COM-module is istantiated(?) via
st=win32com.client.Dispatch(..)
|
by: Gheorghe Postelnicu |
last post by:
Hi,
I am trying to create a windows service that will process some
keyboard events. For that, i am trying to use pyHook and pythoncom,
which work great in a stand-alone application. However, when in a
service, the first problem I encounter is that the SvcStop part
doesn't seem to be responding. Any suggestions?
Thanks,
--
|
by: John Walsh |
last post by:
Hi,
I'd like to write a python script to control Google Earth,
and I've read that Google Earth provides a COM api, and that
Python has a COM module 'pythoncom'.
Anyone know where to get pythoncom from - as a separate module,
because I'm using the Python application that comes with my GPS
chip, from Telit :-
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|