469,315 Members | 1,549 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

Problem loading vb.net dll in Python

13
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\lib\ctypes\__init__.py", line 361, in __getattr__
func = self.__getitem__(name)
File "C:\Python25\lib\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
Dec 3 '08 #1
0 1490

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Stewart Midwinter | last post: by
2 posts views Thread by baileyxia | last post: by
5 posts views Thread by Christian Stapfer | last post: by
1 post views Thread by rekkufa | last post: by
5 posts views Thread by s0suk3 | last post: by
3 posts views Thread by Lawrence D'Oliveiro | last post: by
6 posts views Thread by barun.saha04 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.