[python-win32] Newbie question

2006-09-22 Thread Mark C. Brighton
Hello, I don't really have experience using win32com and I'm running into a 
problem.  I'm trying to use a COM object.  Several of the functions take 
strings as arguments, but when I pass in a string I get an exception:

>>> import win32com.client
>>> o=win32com.client.gencache.EnsureDispatch("AT91Boot_DLL.AT91BootDLL.1")
>>> o.AT91Boot_Open("/usb/ARM0")
Traceback (most recent call last):
  File "", line 1, in ?
  File 
"C:\Python24\lib\site-packages\win32com\gen_py\A3983AFB-180A-4751-B69B-D5496C253EF2x0x1x0.py",
 line 52, in AT91Boot_Open
, h_handle)
  File "C:\Python24\Lib\site-packages\win32com\client\__init__.py", line 446, 
in _ApplyTypes_
return self._get_good_object_(
ValueError: invalid literal for int(): /usb/ARM0

The documentation claims that the argument is a pointer to a string.  Looking 
in PythonWin's COM browser, it appears that the object is expecting an integer 
pointer. Is there a way to get around this?  

The DLL in question can be found in: 
http://atmel.com/dyn/resources/prod_documents/at91_isp_V14.zip

Thanks,

Mark Brighton
Senior Software Engineer
NeuroPace

___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] C# Vs Python

2007-04-02 Thread Mark C. Brighton
If you're interested in using Python with .NET, you should check out IronPython:

http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython

They've implemented Python in .NET.  Personally, I've never used it.  

Mark Brighton
Senior Software Engineer
NeuroPace


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bob Gailer
Sent: Monday, April 02, 2007 12:58 PM
To: James Matthews
Cc: python-win32
Subject: Re: [python-win32] C# Vs Python


James Matthews wrote:
> Thank you Bob but does python's windows extensions really have the 
> power of the .NET classes
Sorry, I know nothing about .NET. Perhaps some other list lurker can 
speak to that. Or could you provide an example of a .NET class and its 
usage in C#?

-- 
Bob Gailer
510-978-4454

___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32