[python-win32] Trying to use DirectX
Kerim Borchaev
Kerim Borchaev <warkid@hotbox.ru>
Fri, 25 Oct 2002 16:48:12 +0400
This is a multi-part message in MIME format...
------------=_1035550187-47558-0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello!
Is it possible to use DirectX typelibrary with Python?
When I try this script:
import win32com.client
win32com.client.Dispatch('DIRECT.DirectX8.0')
I get this error:
Traceback (most recent call last):
File "test.py", line 2, in ?
win32com.client.Dispatch('DIRECT.DirectX8.0')
File "C:\Python22\lib\site-packages\win32com\client\__init__.py", line 92, in Dispatch
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Python22\lib\site-packages\win32com\client\dynamic.py", line 81, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python22\lib\site-packages\win32com\client\dynamic.py", line 72, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147467262, 'No such interface supported', None, None)
Can someone kindly explain me what happens here?
Best regards,
Kerim mailto:warkid@hotbox.ru
------------------
Get free mailbox 20 Mb at http://www.hotbox.ru
------------=_1035550187-47558-0--