Re: [python-win32] win32ui can't be found .. some places.

2006-02-06 Thread Mark Hammond
> Traceback (most recent call last): >File "CharmAnalysis05.py", line 24, in ? >File "ddeclient.pyc", line 6, in ? >File "pywin\mfc\object.pyc", line 3, in ? >File "win32ui.pyc", line 9, in ? >File "win32ui.pyc", line 7, in __load > ImportError: DLL load failed: The specified mo

[python-win32] win32ui can't be found .. some places.

2006-02-06 Thread Terry Acree
I have been struggling for some time with a strange failure of py2exe. When I include the dde.py module in a freeze with py2exe and copy the dist folder to another computer (w/o python) On some computers it works and others it doesn't (all are recent XP installs) I get this message: Tracebac

Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-06 Thread Mark Hammond
> > > > > > Does the error above show with some certainty that > > > it's a problem with the COM object? > > > > Sadly it doesn't demonstrate much with any > > certainty! > > Humm... Is there a way to debug the python side more > carefully? E.g., using a lower-level interface in the > pythoncom mod

Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-06 Thread Sumeet Sobti
I tried the "late-bound" mode (by deleting all the generated files in the gen_py directory). It still gives me the same TypeError. >>> obj.AddTest('IsBuy', True) Traceback (most recent call last): File "", line 1, in ? File "", line 2, in AddTest TypeError: The VARIANT type is unknown (

Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-06 Thread Sumeet Sobti
--- Mark Hammond <[EMAIL PROTECTED]> wrote: > > > > Does the error above show with some certainty that > > it's a problem with the COM object? > > Sadly it doesn't demonstrate much with any > certainty! Humm... Is there a way to debug the python side more carefully? E.g., using a lower-level in

Re: [python-win32] Explicit variant types for Invoke & InvokeTypes (WasRe: Autocad.*)

2006-02-06 Thread Mark Hammond
> I must admit I don't know how to fully test my implementation. I also > have at least one bug related to strings, which the test below will > demonstrate. I am soliciting any help I can get to solve the general > case. Or, failing that, I'm wondering if a less-general patch would be > accepte

[python-win32] Explicit variant types for Invoke & InvokeTypes (Was Re: Autocad.*)

2006-02-06 Thread Dan Glassman
Mark Hammond wrote: > Your changes look reasonable for the job they are designed to do, but > doesn't provide a general solution I can try to adopt (which is fine!). Yeah -- I didn't mean that as a patch for general distribution. 'Suggested workaround' would've been better in the old subject line.

Re: [python-win32] PythonService.exe and Windows Server 2003

2006-02-06 Thread Mark Hammond
Do you have the complete traceback?  This is from an event-log message, so if this is a call you are making, it may be that something is wrong with the params (eg, the inserts).  This will not fail in "debug" mode as debug mode makes no attempt to actually write such entries to the log - it

Re: [python-win32] Attributes of win32com and accessing MS Access

2006-02-06 Thread Math
I already found a solution :=).   -- - Original Message - From: Math To: python-win32@python.org Sent: Monday, February 06, 2006 7:43 PM Subject: [python-win32] Attributes of win32com and accessing MS Access Hello,

Re: [python-win32] Visual Basic

2006-02-06 Thread Speers, Ted
Thanks for your help ... That does the trick. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Monday, February 06, 2006 10:27 AM To: python-win32@python.org Subject: Re: [python-win32] Visual Basic Speers, Ted wrote: >Maybe I should ha

Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-06 Thread Mark Hammond
> I tried changing the 30 to 8 in the above line. This > does *not* work either, although it gives a different > error this time: > > >>> obj.AddTest('IsBuy', True) > Traceback (most recent call last): > File "", line 1, in ? > File > "c:\Python24\lib\site-packages\win32com\gen_py\98B8AE14-466F

Re: [python-win32] Attributes of win32com and accessing MS Access

2006-02-06 Thread Math
I found a solution (Should be ADOX) :-): How to create db.mdb in Pyton: cat = win32com.client.Dispatch(r'ADOX.Catalog') cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db.mdb") Thanks --- > On Mon, 6 Feb 2006 19:43:25 +0100, "Math"

Re: [python-win32] Attributes of win32com and accessing MS Access

2006-02-06 Thread Tim Roberts
On Mon, 6 Feb 2006 19:43:25 +0100, "Math" <[EMAIL PROTECTED]> wrote: >Pardon my English, my native is Dutch. >Can somebody please tell me where I can find more information about win32com >module and attributes. >I wanna create a empty MS Access DataBase with COM, ADO and SQL from Python. >Where

Re: [python-win32] PythonService.exe and Windows Server 2003

2006-02-06 Thread mark mclarnon
Mark:I appreciate the resposne, I have the exact text of the error message in case this helps anyone else out in the future:pywintypes.error:(1783,'RegisterEventSource/ReportEvent','The stub recieved bad data') MarkOn 2/5/06, Mark Hammond <[EMAIL PROTECTED]> wrote: > From: [EMAIL PROTECTED][mailto:

Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-06 Thread Sumeet Sobti
Hi, > > - - - - - - - - > > def AddTest(self, > lpProperty=defaultNamedNotOptArg, > > vValue=defaultNamedNotOptArg): > > """method AddTest""" > > return self._oleobj_.InvokeTypes(4, LCID, 1, > (24, > > 0), ((30, 1), (12, 1)),lpProperty, vValue) > > Can you please try

[python-win32] Attributes of win32com and accessing MS Access

2006-02-06 Thread Math
Hello,   Pardon my English, my native is Dutch. Can somebody please tell me where I can find more information about win32com module and attributes. I wanna create a empty MS Access DataBase with COM, ADO and SQL from Python. Where can I find all methods and so on from win32com*** when it

Re: [python-win32] Visual Basic

2006-02-06 Thread Tim Roberts
Speers, Ted wrote: >Maybe I should have just asked how to deal with this first. > >xlapp=win32com.client.Dispatch("Excel.Application") >book=xlapp.Workbooks("bookname") >VBProj=book.VBProject > >... >com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Office Excel', >'Programmatic ac

Re: [python-win32] Visual Basic

2006-02-06 Thread Speers, Ted
Maybe I should have just asked how to deal with this first. xlapp=win32com.client.Dispatch("Excel.Application") book=xlapp.Workbooks("bookname") VBProj=book.VBProject ... com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Office Excel', 'Programmatic access to Visual Basic Project

Re: [python-win32] Visual Basic

2006-02-06 Thread Tim Roberts
Speers, Ted wrote: > >- -All of my VBA code is "within Excel." Sorry for the confusion. I don't >know any better. > > I wondered about that, and I probably should have clarified it before I responded. VBA forms are just Excel objects, and should be able to be manipulated using the Excel ob

Re: [python-win32] Visual Basic

2006-02-06 Thread Speers, Ted
>If I can do this I'll be golden: > >Imagine an Excel Macro Start that does the following: > >Sub Start(): >Set form = MyUserForm >load form >form.show vbmodeless > >end sub > > Yes, but you can't really do that from Excel either, can you? If MyUserForm is a VBA form within

Re: [python-win32] Visual Basic

2006-02-06 Thread Tim Roberts
On Sun, 5 Feb 2006 16:18:51 -0800, "Speers, Ted" <[EMAIL PROTECTED]> wrote: >I'd like to redo all my Visual Basic Projects in Python ... I would >have started down the Python path from the get-go but was in too much of >rush. Now that I have a moment, I thought I'd get the help I need. > >I kno

Re: [python-win32] win32pdh problems

2006-02-06 Thread Tim Golden
[Frank Günther] | I use win32pdh and EnumObjectsItems ... to get pids for | application name. | Has anyone a suggestion for implementing this in a different way? Well, assuming that all you want is a PID (or a list of them) for a given application name, you can do it with WMI. I don't know if i

[python-win32] win32pdh problems

2006-02-06 Thread Frank Günther
Hi,   I use win32pdh and EnumObjectsItems … to get pids for application name. By importing win32pdh or calling win32pdh.EnumObjectItems I get several strange hard to find problems on some machines. The problems occur only on few machines (XP and NT)! 1.)    the float separator is chang