Re: [python-win32] win32ui and resources for dialogs

2007-01-10 Thread Niki Spahiev
Michael Morisak wrote: Does anybody know what i could do about this problem I do not want to write this whole dlg in c++ since i would have to do a lot of COM in this dialog then Do you really need MFC for dialogs? Using MFC for python plug-in is a PITA. We use ctypes for pure win32

Re: [python-win32] GetVolumeInformation throwing exception

2007-01-10 Thread Tim Roberts
Gustavo Tabares wrote: I'm having a problem with the code below and I'm not sure if there is a bug in win32api.GetVolumeInformation. There is a simple workaround, but I'm curious nonetheless. Any help is appreciated. ... The simple workaround is to add os.sep to the F: string in the last

Re: [python-win32] GetVolumeInformation throwing exception

2007-01-10 Thread Gustavo Tabares
Hrm ok, so this: win32api.GetVolumeInformation('F:') only works if your current working directory isn't somewhere on that drive (as in my example code)? The rest of the time you need to specify an additional slash or to be safe always include the os separator. Thanks, Gus On 1/10/07, Tim

Re: [python-win32] GetVolumeInformation throwing exception

2007-01-10 Thread Tim Roberts
Gustavo Tabares wrote: Hrm ok, so this: win32api.GetVolumeInformation('F:') only works if your current working directory isn't somewhere on that drive (as in my example code)? The rest of the time you need to specify an additional slash or to be safe always include the os separator. Beats

Re: [python-win32] MemoryError: CreatingSafeArray when trying to use VBCOM API

2007-01-10 Thread Rex Corrovan
I figured out when this happens. It happens when you try to pass an array into an arg that requires a Record. I am really confused as to how this all works, but will start trying to find some info on what is going on. Form what I can see, the code in the makepy generated file is trying to take

Re: [python-win32] MemoryError: CreatingSafeArray when trying touse VBCOM API

2007-01-10 Thread Mark Hammond
if I do: s = win32com.client.Record(myStruct, o) s.myString = test s.myInt = 12 o.myFunct(arg1=(test,test), arg2=1, arg3=s) it then complains: TypeError: Objects for SAFEARRAYS must be sequences (of sequences), or a buffer object. In your original mail, you indicated the makepy