Re: [python-win32] win32com problem with LabVIEW

2005-06-24 Thread Mark Hammond
> It doesn´t work with the following code: ... > "D:\Python24\Lib\site-packages\win32com\client\makepy.py", > line 306, in GenerateChildFromTypeLibSpec > __import__("win32com.gen_py." + dir_name + "." + child) > ImportError: No module named _Iapplication That is probably a bug related to tra

Re: [python-win32] The VARIANT type is not supported for SAFEARRAYS

2005-06-24 Thread Mark Hammond
> I asked the guy who made the COM object to change the last > varibale of the struc to a string, but now the message shown > is " The VARIANT type is not supported for SAFEARRAYS" > > Does anyone knows what's wrong? This means that win32com was asked to create a SAFEARRAY of a type it does not un

Re: [python-win32] win32com.client.Dispatch problem

2005-06-24 Thread Thomas Heller
Amit Upadhyay <[EMAIL PROTECTED]> writes: > Hi, > > So here is my problem, I have to implement a com server, that would be used > by DotNet application, which can not work with late binding (apparently they > don't have CreateObject of VB). So i am following the approach suggested by > http://s

Re: [python-win32] win32com problem with LabVIEW (newbie question)

2005-06-24 Thread Kuner Martin
LabVIEW has an ActiveX interface. With that you can do nearly everything. The IMHO greatest thing is, that you don´t have to write (or draw) nothing additional to access your self written Vis via the ActiveX interface. The only thing you need is the name of the VI. (see LV doc -> ActiveX) With

[python-win32] The VARIANT type is not supported for SAFEARRAYS

2005-06-24 Thread Gijs Korremans
Hi, >From a COM object (written in c++) I receive a struct: unsigned shord (2 bytes) BYTE (6 bytes) BYTE (512 bytes) I can use the first two in python, but when I try to acces the last on with python( i.e. test = struct.longbyte), Python stops doing anything and when I debug the code in boa con

Re: [python-win32] win32com problem with LabVIEW (newbie question)

2005-06-24 Thread Jeff Peery
Hello, I am fairly new to python. I use wx python at work to make different pieces of engineering code. I am very interested to learn about how to communicate between python and labView... this discussion caught my eye (Re: win32com problem with LabVIEW). Could someone give me an idea of where to

Re: [python-win32] filling Windows properties "Summary" tab?

2005-06-24 Thread R. Alan Monroe
> They are per-file settings, but, if I filled them in for a .py file, > they would persist only on this machine, but not if the file is > copied to another Windows box, and are unavailable on the Samba > server. Try it with an .mp3 file. I bet it will survive being copied to another machine. The

Re: [python-win32] filling Windows properties "Summary" tab?

2005-06-24 Thread Ray Schumacher
Hi Mark, At 04:09 PM 6/23/2005, Mark Hammond wrote: These properties generally work for COM "structured storage" files. Microsoft Office documents and a number of others use this format, and the win32com functions allow you to get and set these properties.   If the files are not these COM storage

Re: [python-win32] win32com problem with LabVIEW

2005-06-24 Thread Kuner Martin
Hi Mark, It doesn´t work with the following code: - import win32com.client oLv = win32com.client.gencache.EnsureDispatch("LabView.Application") strVi = "D:\\Projects\\py.lv.test\\pytest.vi" oViTest = oLv.GetVIReference(strVi,"",True) obViTest._FlagAsMethod("Call") bError= T

Re: [python-win32] win32com problem with LabVIEW

2005-06-24 Thread Mark Hammond
> I try to talk with Python to a LabVIEW-Application called > "cbt" via ActiveX. > > Now I´m running into problem calling the "Call" method. > > Here´s the code: > > import win32com.client > oLv = win32com.client.Dispatch("cbt.Application") Try either oLv = win32com.client.gencach

[python-win32] win32com.client.Dispatch problem

2005-06-24 Thread Amit Upadhyay
Hi, So here is my problem, I have to implement a com server, that would be used by DotNet application, which can not work with late binding (apparently they don't have CreateObject of VB). So i am following the approach suggested by http://starship.python.net/crew/theller/ctypes/sum_sample.html, a

[python-win32] win32com problem with LabVIEW

2005-06-24 Thread Kuner Martin
I try to talk with Python to a LabVIEW-Application called "cbt" via ActiveX. Now I´m running into problem calling the "Call" method. Here´s the code: import win32com.client oLv = win32com.client.Dispatch("cbt.Application") strVi = oLv.ApplicationDirectory + "\\cbt.exe\\" + "cdcAxLog