[python-win32] ByRef params not working with PythonCOM

2008-09-30 Thread Greg Antal
tra parameter, but that results in a 'type mismatch' error, which probably doesn't surprise anyone.  Can someone help? Thanks, Greg Antal -- Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 200 San Diego, CA 92130 www.ata-e.com [EMAIL PR

Re: [python-win32] ByRef params not working with PythonCOM

2008-10-06 Thread Greg Antal
the problem if it isn't clear. Thanks, Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 200 San Diego, CA 92130 www.ata-e.com [EMAIL PROTECTED] 858-480-2072 (Phone) 858-792-8932 (Fax) Greg Antal wrote: Gentlemen: I need to work with

Re: [python-win32] ByRef params not working with PythonCOM

2008-10-08 Thread Greg Antal
mport Dispatch # The following 3 lines may need tweaking for the particular server # Candidates are pythoncom.Missing, .Empty and .ArgNotFound defaultNamedOptArg=pythoncom.Empty defaultNamedNotOptArg=pythoncom.Empty defaultUnnamedArg=pythoncom.Empty Thanks again for your help. - Greg Antal Gregory W

Re: [python-win32] ByRef params not working with PythonCOM

2008-10-22 Thread Greg Antal
Hi everybody. It's been nearly 2 weeks since I posted this, and nobody has responded.  If anybody has any ideas, I'd be glad to hear them.  I'll provide more info on anything anybody thinks is relevant. Thanks, Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineer

Re: [python-win32] ByRef params not working with PythonCOM

2008-10-28 Thread Greg Antal
has 315 (three hundred and fifteen) such entries, and there are hundreds more on dozens of other objects, so manual editing to correct all of them is not feasible.  Question:  can something be done to makepy to fix this, or this an inherent and hopeless flaw in the TLB? Thanks, Greg Antal Gregory W.

Re: [python-win32] ByRef params not working with PythonCOM

2008-11-03 Thread Greg Antal
Mark: The workaround you suggest may not scale, but it works and I can live with it.  I was on the verge of giving up on Python for this project and converting to the API's native VB, but I won't have to do that now.  Thanks. - Greg Antal Gregory W. Antal Senior Technical A

Re: [python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread Greg Antal
Solomon: To do this in a Visual Basic module within Excel, you would use intValue = Val(worksheet.Cells(row, col).Value) I haven't tried to use Excel as a COM server, but I think if you can use the "Val()" function, you'll get the data you want instead of a string. - G

Re: [python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread Greg Antal
ed Excel this way, so I'm just going by standard object-oriented practice. You'll have to work out those details yourself. - Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 200 San Diego, CA 92130 www.ata-e.com [EMAIL PROTECTED]

Re: [python-win32] Releasing a Com object

2009-01-20 Thread Greg Antal
Try     del xxx Even when you invoke whatever "stop" or "close" methods that object offers, you sometimes still have to delete the object to make the application shut down. - Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino

[python-win32] COM server accessible via "GetObject"

2009-03-06 Thread Greg Antal
ot; method?) Can anyone straighten me out?  I'd be happy to buy someone's book, and even read it, if you could point me to the right one. Thanks, Greg Antal -- Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 20

[python-win32] VARIANT type not supported error

2009-06-10 Thread Greg Antal
ans that the Server uses a data type that Pythoncom doesn't support, in which case I think there's not much I can do about it, but maybe someone can suggest something? FYI, I'm using ActiveState python version 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)].  Woul

Re: [python-win32] VARIANT type not supported error

2009-06-12 Thread Greg Antal
Mark: Thanks for the confirmation, and thanks for the fix. - Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 200 San Diego, CA 92130 www.ata-e.com greg.an...@ata-e.com 858-480-2072 (Phone) 858-792-8932 (Fax) Mark Hammond wrote, On

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-27 Thread Greg Antal
so, go to the next item in the thread to see Mark Hammond's suggested workaround. That worked, and would have been fine with me, but the TLB's authors actually fixed the TLB as soon as I showed them the problem, so I didn't have to do anything funny. Good luck. - Greg Antal G

Re: [python-win32] Calling COM methods that expect arguments by reference

2009-08-10 Thread Greg Antal
blems.  Mike Graham and I had ongoing trouble even after we got the calling sequence right, for completely different reasons.   If that happens to you, I'm afraid you'll have to get advice from someone much wiser than I.  (There are a lot of them monitoring this list, fortunately.) -

Re: [python-win32] MemoryError: can I use more?

2010-02-12 Thread Greg Antal
w how to do it. If you want to access more memory, you have to go to a 64-bit machine and operating system. - Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 200 San Diego, CA 92130 www.ata-e.com greg.an...@ata-e.com 858-480-2072 (Phone

Re: [python-win32] Using the COM interface of Infinion Memtool

2010-04-09 Thread Greg Antal
d work just like SMTMemtool, because you don't need to "Get" them from another object: sp = PyMemtool.SMTSerPort() ti = PyMemtool.SMTTargInfo() tf = PyMemtool.SMTTargIntf() - Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 200 S

Re: [python-win32] Using the COM interface of Infinion Memtool

2010-04-12 Thread Greg Antal
Markus Hubig wrote, On 4/10/2010 8:31 AM: On Fri, Apr 9, 2010 at 11:05 PM, Greg Antal <greg.an...@ata-e.com> wrote: The beauty of using the early binding file is that you don't have to use all that Dispatch syntax because the file does that for you. I don't know wha

Re: [python-win32] EOFError in gencache.py

2010-07-14 Thread Greg Antal
I think the way to solve this problem is to run your type library through makepy.py and keep the output. For example: C:~\Lib\site-packages\win32com\client\makepy.py -o MyTlb.py [my_path]\MyTlb.tlb Then, in your code, wherever you need something from that type lib, import the file as you would

Re: [python-win32] Access femap API, Type mismatch

2010-12-02 Thread Greg Antal
n VB or C++. If you don't do it, you'll just never get it to work. - Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 200 San Diego, CA 92130 www.ata-e.com greg.an...@ata-e.com 858-480-2072 (Phone) 858-792-8

Re: [python-win32] Bypassing gen_py, accessing makepy-generated class directly

2013-12-16 Thread Greg Antal
SomeServer" is already registered, then you'll have to wait for one of the genuinely smart people on this list to help, because we're at the limit of my understanding here. - Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 1

Re: [python-win32] Python wn32com : How to give byRef parameters in object method and then get updated values

2015-03-05 Thread Greg Antal
d; it is, after all, just another Python file. If there is another way to solve this problem, I don't know what it is. One of the real experts who monitor this list will have to help you with that. - Greg Antal -- Gregory W. Antal