473,804 Members | 3,373 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling dlls with Calldll/WinDll or Ctypes or...

Hello all,

Pardon my ignorance here. I would like to talk to someone that has
had success in calling ddls in Windows NT/2000/XP.

I am wondering where to dload any of these packages? Google searches
keep turning up articles similar to this.

Any pointers would be greatly appreciated!

Todd
Jul 18 '05 #1
2 2355
Todd Gardner wrote:
Pardon my ignorance here. I would like to talk to someone that has
had success in calling ddls in Windows NT/2000/XP.

I am wondering where to dload any of these packages? Google searches
keep turning up articles similar to this.


similar to what?

google for ctypes and press "I feel lucky":

http://starship.python.net/crew/theller/ctypes/
which has a "downloads" section a bit down.

calldll is a bit harder; you have to add "python" to the search string
to make "I feel lucky" work:

http://www.nightmare.com/software.html

both distributions comes with enough demos and samples to get you
going. for details on available Win32 functions, see:

http://msdn.microsoft.com

</F>


Jul 18 '05 #2
Todd,

I write this and have used it with many different .DLLs
over the last 18 months. Good luck.

http://aspn.activestate.com/ASPN/Coo.../Recipe/146847

The trick it getting the arguments into/from the correct
format for the .DLL. I've made extensive use of struct
to accomplish that. If you want to give it a try, I'd
be happy to assist you as much as I can.

Larry
"Todd Gardner" <pi**@earthlink .net> wrote in message
news:9b******** *************** ***@posting.goo gle.com...
Hello all,

Pardon my ignorance here. I would like to talk to someone that has
had success in calling ddls in Windows NT/2000/XP.

I am wondering where to dload any of these packages? Google searches
keep turning up articles similar to this.

Any pointers would be greatly appreciated!

Todd

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
28436
by: Georgy Pruss | last post by:
Hi all, How can I call a function which is in a Windows DLL? For example, import win32api lib_hnd = win32api.LoadLibrary( "user32.dll" ) if lib_hnd: fn_addr = win32api.GetProcAddress( lib_hnd, "MessageBeep" ) # returns int(2010532466) if fn_addr: # Here I'd like to call fn_addr. In C it would be plain fn_addr()
0
1192
by: Dave.NET | last post by:
Hi all, I have the following question and hope the .NET experts here can help me: I developed an application and created many DLLs in VC++, then I switched the platform from VS6 and compile in VS.NET. Odd thing happens now that the newly compiled application is successful to call a function in the DLL (a dialog will appear) on a machine which has VS.NET installed. But if I try on another machine without VS.NET, then the dialog won't...
0
1078
by: Helge | last post by:
I have a vb.net app that calls an "old" DLL that does some math (map coordinate transformations), declared with an old fasioned declare statement in my code. Sometimes, but very rarely, the call fails with a COMException. On the last dataset it failed 33 out of a total 4011085709 (4 billion) calls. My code catches the exception and tries one more time. Then it usually works.
3
4008
by: robspychala | last post by:
Hi Is there something similar to python's windll for calling DLLs on win32 but meant for calling dylib's on OS X? thanks, r.s.
0
1121
by: kim d | last post by:
Hi, I'm looking to call a method of a class which is declared in a dll. I know it's not a simple case of calling dllImport because of the fact that classes are involved. Does anyone have an example of how this is done? TIA kim d
3
2084
by: kj7ny | last post by:
Is there a good example on instantiating, calling, using, etc., an API from Python? I need to use Python to talk to another system through that system's API's on Windows XP. Can you point me to documentation and/or a good example of Python using 3rd party API's? (Preferably a good example rather than just documentation.)
2
4439
by: luis | last post by:
I'm using ctypes to call a fortran dll from python. I have no problems passing integer and double arryas, but I have an error with str arrys. For example: ..... StringVector = c_char_p * len(id) # id is a list of strings Id_dat=StringVector() for i in range(len(Id)): ....Id_dat=id
0
2561
by: Egor Zindy | last post by:
Egor Zindy wrote: #!/usr/bin/env python """ A generic chipid library based on ctypes This module handles most of the functions in FTChipID.dll
4
3167
by: taghi | last post by:
I want to call NetShareEnum, a function from netapi32.dll NetShareEnum has this definition: NET_API_STATUS NetShareEnum( __in LPWSTR servername, __in DWORD level, __out LPBYTE *bufptr, __in DWORD prefmaxlen, __out LPDWORD entriesread, __out LPDWORD totalentries,
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5515
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.