Problem loading vb.net dll in Python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nav010
    New Member
    • Sep 2008
    • 13

    #1

    Problem loading vb.net dll in Python

    Hello Everybody

    I am trying to load vb.net dll in Python, but its showing errors.

    >>> from ctypes import *
    >>> dll = windll.Userdll
    >>> dll
    <WinDLL 'Userdll', handle 1050000 at cade50>
    >>> dll_function1 = dll.xml_load("C :\test.xml")

    Traceback (most recent call last):
    File "<pyshell#3 >", line 1, in <module>
    dll_function1 = dll.xml_init("C :\test.xml")
    File "C:\Python25\li b\ctypes\__init __.py", line 361, in __getattr__
    func = self.__getitem_ _(name)
    File "C:\Python25\li b\ctypes\__init __.py", line 366, in __getitem__
    func = self._FuncPtr(( name_or_ordinal , self))
    AttributeError: function 'xml_init' not found

    Userdll is a dll created in vb.net. xml_load is a function in it. I tried loading this dll in vb.net its working fine. I accessed in vb.net by referencing in settings.
    Do we have any such option in Python?
    Can I call the class of vb.net dll in Python , so that i can create its object and access its functions.
    Please help me out. I would be grateful to you.

    Thanks
    Navneet
Working...