COM makepy problem



Hello together,

My system:
ActivePython 2.4.1
Windows XP

I write a COM Server in VC++ 6.0 using ATL. So far so good. While I develop I got sometimes strange behaviour with makepy utility. Today again. :-(

What I do on the python (COM client) side.
1) Register COM server
2) Use COM makepy utility
3) Create com client object using win32com.client.Dispatch(...)

The generated file in

c:\python24\lib\site-packages\win32com\gen_py\{...}\I<interfaceName>.py

seem not work corectly.

From the traceback, when i do
myObj = win32com.client.Dispatch("<ProgId>")
----------------------------------------------
[...]
__import__("win32com.gen_py." + dir_name + "." + child)
File "c:\Python24\lib\site-packages\win32com\gen_py\D0BC1B38-B4AC-480A-86B0-81
DA572765CDx0x1x0\IDssInterface.py", line 125
IDssInterface_vtables_ = [dispatch_ = 1
^
SyntaxError: invalid syntax


file IDssInterface.py (starting at line 123)
--------------------------------------------
[...]
LCID = 0x0

IDssInterface_vtables_dispatch_ = 1
IDssInterface_vtables_ = [
[...]

Now I change the file IDssInterface.py by hand to:
--------------------------------------------------
[...]
LCID = 0x0
IDssInterface_vtables_dispatch_ = 1
IDssInterface_vtables_ = [
[...]

and everything works fine !!!

Does anybody have a suggestion/idea/hint on that ???

Regards
Alexander
.



Relevant Pages

  • Re: Critical Section limits?
    ... Can you design away the need for a CS per client? ... server, the client object, and data received for it in the completion ... queueing it to the IOCP read thread so another IOCP read can be issued. ... There again, since my server has a half-life of 90 seconds, maybee I should ...
    (borland.public.delphi.nativeapi)
  • Re: Error in client with remoting
    ... Remember, when you create an event from the server, its just like the ... server is remoting its way back to the client. ... >This is the code I am using to create the client object and its event handler: ... >Let me know if anything is unclear or if you want me to post anything else to clarify this. ...
    (microsoft.public.dotnet.framework.remoting)
  • Restart of client application
    ... I have a server apoplication eposing remote object, ... Oject is used by client application and client object is passed as proxy to ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Setting object callback access permissions
    ... IAccessControl interface? ... > I have a client object which passes a callback interface to a server ... > I can't change process-wide security settings in the client process ...
    (microsoft.public.security)
  • Re: Setting object callback access permissions
    ... IAccessControl interface? ... > I have a client object which passes a callback interface to a server ... > I can't change process-wide security settings in the client process ...
    (microsoft.public.win2000.security)