[Python.NET] Access functions in dll class

2008-12-03 Thread navneet khanna
Hello Everybody I am able to import the dll and able to access the class of the dll. But when I am trying to access the methods in the dll its showing error. #Class1 is the class in dll and next is the function. Class1.Bin_To_Dec("11") Traceback (most recent call last): File "", line 1, in

Re: [Python.NET] path question: clr.so being picky about paths

2008-12-03 Thread Hamilton Link
Sure enough, under ubuntu (though I'm about to switch to fedora) I only need clr.so and Python.Runtime.dll. So, obviously I have some more digging to do on how this all works. But how is clr.so broken precisely? It appears to work... h Christian Heimes wrote: Link, Hamilton wrote: - c

Re: [Python.NET] path question: clr.so being picky about paths

2008-12-03 Thread Christian Heimes
Link, Hamilton wrote: - clr.so bootstraps mono (under Windows the OS knows how to dlload a .net assembly already) to enable .net assembly extensions and I assumed perhaps recklessly that it laterals to clr.pyd The code in src/monoclr is compiled to a shared library (.so on most Unices and .d

Re: [Python.NET] Problem loading vb.net DLL in Python

2008-12-03 Thread sambasivareddy
Hi Navneet, If I understand u r problem correct. Don't use python...use python.net..have a look in to below link.u will get clear idea on it. http://pythonnet.sourceforge.net/readme.html Above link they clearly mention how to load/import dlls .plz go through it. Regards, Sambu.

[Python.NET] Problem loading vb.net DLL in Python

2008-12-03 Thread navneet khanna
Hello Everybody I am trying to load vb.net dll in Python, but its showing errors. >>> from ctypes import * >>> dll = windll.Userdll >>> dll >>> dll_function1 = dll.xml_load("C:\test.xml") Traceback (most recent call last): File "", line 1, in dll_function1 = dll.xml_init("C:\test.xml")

[Python.NET] How to use a Python function that returns a double array in VB vie C++

2008-12-03 Thread Pieter Steenekamp
Hi all, I want to use a Python function that returns a double array in VB dot net via embedding Python in C++ dot net. Using the CLR it is easy to access C++ from VB. Then also I don't have a problem if the Python function returns a single variable of type double, using the following lines in m