Hello,
I'm running python v2.6 amd64 on Vista x64. I've compiled the latest
ctypes and comtypes (0.6) using Visual Studio 2008.
When I say CreateObject on my Python COM Server I get the following error:
>>> CreateObject("PyDbgEngLib.DbgEngEventCallbacks.1")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\site-packages\comtypes\client\__init__.py",
line 197, in CreateObject
obj = comtypes.CoCreateInstance(clsid, clsctx=clsctx, interface=interface)
File "C:\Python26\lib\site-packages\comtypes\__init__.py", line
1119, in CoCreateInstance
_ole32.CoCreateInstance(byref(clsid), punkouter, clsctx,
byref(iid), byref(p))
File "source/callproc.c", line 763, in GetResult
WindowsError: [Error -2147467259] Unspecified error
>>>
The source to my com server is at
http://peachfuzz.svn.sf.net/svnroot/peachfuzz/branches/Peach2.3/dependencies/src/peach-PyDbgEng/PyDbgEng/DbgEngEvent.py.
The referenced TLB is at
https://peachfuzz.svn.sf.net/svnroot/peachfuzz/branches/Peach2.3/dependencies/src/peach-PyDbgEng/DbgEngTlb/out/DbgEng.tlb.
I have also tried changing the class definition to be more like
TestComServer.py by doing this:
#class DbgEngEventCallbacks(CoClass):
class DbgEngEventCallbacks(
DbgEng.IDebugEventCallbacks,
DbgEng.IDebugOutputCallbacks,
comtypes.server.connectionpoints.ConnectableObjectMixin
):
_reg_clsid_ = GUID('{EAC5ACAA-7BD0-4f1f-8DEB-DF2862A7E85B}')
_reg_threading_ = "Both"
_reg_progid_ = "PyDbgEngLib.DbgEngEventCallbacks.1"
_reg_novers_progid_ = "PyDbgEngLib.DbgEngEventCallbacks"
_reg_desc_ = "Callback class!"
_reg_clsctx_ = comtypes.CLSCTX_INPROC_SERVER |
comtypes.CLSCTX_LOCAL_SERVER
_com_interfaces_ = [DbgEng.IDebugEventCallbacks,
DbgEng.IDebugOutputCallbacks,
comtypes.typeinfo.IProvideClassInfo2,
comtypes.errorinfo.ISupportErrorInfo,
comtypes.connectionpoints.IConnectionPointContainer]
mike
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
comtypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/comtypes-users