Bugs item #3566266, was opened at 2012-09-10 03:41
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3566266&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Omega Weapon (omega_weapon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python Object Browser - Unable to view ActiveX CoClass
Initial Comment:
Full title: Python Object Browser - Unable to view ActiveX CoClass type library information
I am currently looking into the possiblity of using Python to control some VB6 ActiveX objects used at work. In order to see what COM objects were accessible, I used the combrowse script - however any attempts to browse the CoClass directory of the objects (as compared to the Dispatch directory) fail with the following error:
========================================================
(null)
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\Pythonwin\pywin\tools\hierlist.py", line
39, in OnTreeItemExpanding
self.AddSubList(itemHandle, self.GetSubList(item))
File "C:\Python27\lib\site-packages\Pythonwin\pywin\tools\hierlist.py", line
86, in GetSubList
return self.DelegateCall(item.GetSubList)
File "C:\Python27\lib\site-packages\Pythonwin\pywin\tools\hierlist.py", line
73, in DelegateCall
return fn()
File "C:\Python27\Lib\site-packages\win32com\client\combrowse.py", line 239,
n GetSubList
refType = typeinfo.GetRefTypeInfo(typeinfo.GetRefTypeOfImplType(j))
pywintypes.com_error: (-2147312566, 'Error loading type library/DLL.', None, No
e)
========================================================
This is after running the makepy script for the object.
The objects are usable from Microsoft Visual basic 6 Studio (etc) - are there further steps needed to get them useable here? Unfortunately I have no experience with this detail as it basically Just Works with normal VB6 development.
Thanks
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2012-09-10 16:41
Message:
I doubt there is much pywin32 can do to resolve this, especially without
more details about the objects in question.
----------------------------------------------------------------------
Comment By: Omega Weapon (omega_weapon)
Date: 2012-09-10 09:25
Message:
Some more detail - using OleView to view the relevant type library, when I
try to look at the CoClass, I get the following error:
---------------------------
OLEViewer 2.0 Interface Viewers
---------------------------
Could not decompile selected item
Error loading type library/DLL.
TYPE_E_CANTLOADLIBRARY ($80029C4A)
---------------------------
OK
---------------------------
So presumably VB6 is doing something bad, but I dont know what or why it
isnt an issue for VB6 :/
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3566266&group_id=78018
|