Re: [python-win32] BSTR

2006-04-15 Thread Reiner M. Stoss
Mark, So everything seems okay, right? Still the question is why The variant argument that was supposed to contain the filename was VT_ERROR. I want to share a reply from the developer of MaxIm DL. He installed Python2.4.3 and PythonWin build 208, just to be able to reproduce this error and

Re: [python-win32] BSTR

2006-04-14 Thread Tim Roberts
On Thu, 13 Apr 2006 23:21:26 +0200, Aleksandar Cikota [EMAIL PROTECTED] wrote: I'm beginner in Python and need help. I'm writing software for a robotic telescope. For CCD camera control we use MaxIm DL (Diffraction Limited). I have a problem with CCDCamera.SaveImage. Here is the code (Python):

Re: [python-win32] BSTR

2006-04-14 Thread Gabriel Genellina
Some remarks (altough not directly related to your current problem): while CCDCamera.ImageReady == False: time.sleep Should be time.sleep(1) or something. Remember that in Python you always need to use () to call a function. if CCDCamera.LinkEnabled == False: It's not a good idea to

[python-win32] BSTR

2006-04-13 Thread Aleksandar Cikota
Hi all,I'm beginner in Python and need help. I'm writing software for a robotic telescope. For CCD camera control we use MaxIm DL (Diffraction Limited). I have a problem with CCDCamera.SaveImage. Here is the code (Python):import win32com.client, timeCCDCamera =

Re: [python-win32] BSTR

2006-04-13 Thread Mark Hammond
The question is, how to convert a String in a BSTR (unicodestring with header)? Python will *always* (unless an object's typelib indicated otherwise) pass a VT_BSTR when a string literal is specified. I'm afraid I can't speculate on what the problem may otherwise be. Mark