Re: [python-win32] Need data type identifiers

2012-07-23 Thread Mark Hammond
All the other comments in this thread are correct, but one other thing you can do in recent pywin32 builds is to use win32com.client.VARIANT to override how a value is passed - search for 'win32com.client.VARIANT' in pywin32.chm for basic docs. HTH, Mark On 21/07/2012 1:55 PM, Fox, Michael K

Re: [python-win32] python-win32 Digest, Vol 112, Issue 19

2012-07-23 Thread Tim Roberts
Jane Chen wrote: > Thank you for your help! No luck so far. > > I wrote a C program and got the same results as python: Support for this ioctl is sporadic. It may simply be that your SD drive doesn't support it. > Win 7 Notebook (with SD card inserted directly i.e. no SD card > reader) Error cod

Re: [python-win32] Need data type identifiers

2012-07-23 Thread Tim Roberts
Fox, Michael K wrote: > > ... > > > > def*GetDirection*(/self/, oDirection=(0,0)): > > return/self/._ApplyTypes_(1611137025, 1, (24, 0), > ((24588,3),), u/'GetDirection'/, None, oDirection) > > > > Occasionally pywin32 assigns the wrong identifier then the argument is > cast as th

Re: [python-win32] Does pywin32 support SD card operation(IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL)?

2012-07-23 Thread Jane Chen
Sorry! I forgot to change the subject in the previous email. Thank you for your help! No luck so far. I wrote a C program and got the same results as python: Win 7 Notebook (with SD card inserted directly i.e. no SD card reader) Error code: 1 Win 7 Notebook (without SD card inserted at all) Err

Re: [python-win32] python-win32 Digest, Vol 112, Issue 19

2012-07-23 Thread Jane Chen
Thank you for your help! No luck so far. I wrote a C program and got the same results as python: Win 7 Notebook (with SD card inserted directly i.e. no SD card reader) Error code: 1 Win 7 Notebook (without SD card inserted at all) Error code: 6 WinXP desktop (with USB stick but without SD card in

Re: [python-win32] py2exe issues with script using selenium

2012-07-23 Thread Ferdinand Sousa
Hi Mark, I tried extracting the files inside webdriver.xpi into a folder webdriverxpi and placed it in lieu of the former in the zip file. I had to tweak some code inside the firefox_profile.py file as well, so that it would add the files inside the webdriverxpi folder to the current path environm

Re: [python-win32] Need data type identifiers

2012-07-23 Thread Graham Bloice
This issue sometimes occurs when the typelib specifies a VARIANT type argument, implying that any VARIANT type will do, but the COM server is coded to expect an actual type and does not (incorrectly IMHO) attempt to convert the incoming VARIANT to the appropriate type. Makepy has no idea of what t