Dispatch interface - PythonWin 1.4 (Oct 26 1996) 
Author Message
 Dispatch interface - PythonWin 1.4 (Oct 26 1996)

Quote:
> Any solutions to the problem below using the
> win32com.client.dynamic.Dispatch and
> DAO:
>=20
> >>> DAO =3D win32com.client.dynamic.Dispatch("DAO.DBEngine")
> >>> win32com.client.dynamic.debugging_attr =3D 1
> >>> DAO.Workspaces._print_details_()

AFAIK, dynamic cannot handle everything. For this reason, see Mark
Hammonds example testAccess.py and daodump.py in win32com\Test .
For DAO and Access it is necessary to build interfaces with makepy.py,
you find it in win32com\client .
You should run makepy over dao3032.dll and redirect the output to
dao3032.py . This is not only faster, you also get a very readable
description of DAO's capabilities.=20

For anyone's convenience, I have run makepy over all I could find
on my machine. You can load the modules from our site if you like

http://www.*-*-*.com/

You example works with dao3032.py, except that the henerated interface
has no _print_details_()

Instead of=20
        DAO =3D win32com.client.dynamic.Dispatch("DAO.DBEngine")
use
        DAO =3D dao3032.DBEngine()
and you=B4re done.

- chris

----------------------------------------------------------------------

Got a real operating system? No? Try at least a real language: python
< http://www.*-*-*.com/ > & < http://www.*-*-*.com/ ;
----------------------------------------------------------------------



Tue, 22 Jun 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. INFO-CLS Digest - 13 Oct 1996 to 14 Oct 1996

2. INFO-ADA Digest - 26 Sep 1996 to 27 Sep 1996 - Special issue

3. Hands-on Eiffel Techniques Course, July 22-26, 1996

4. HOT SMALLTALK CONTRACT*S* [26 Dec 1996 13:04:05 -0700]

5. TO UK HDL USERS: Verilog events at Silicon Design, Oct 25-26

6. INFO-ADA Digest - 2 Oct 1996 - Special issue

7. pythonwin - python1.5/1.4 problem

8. plmodule binary for Pythonwin 1.4 wanted

9. PythonWin based on Python 1.4 release?

10. 1.4 Beta of PythonWin available.

11. INFO-ADA Digest - 3 Dec 1996 to 4 Dec 1996 - Special issue

12. INFO-ADA Digest - 20 Nov 1996 to 21 Nov 1996

 

 
Powered by phpBB® Forum Software