473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Access to Win API

What is the best way to access Win API functions that are not present in the
various extension packages. Is writing a C extension the only solution?
Thanks for any help.

Károly
Jul 18 '05 #1
6 5025
Ladvánszky Károly wrote:
What is the best way to access Win API functions that are not present in the
various extension packages. Is writing a C extension the only solution?


You don't have to write a C extension, you can use ctypes instead.

-- Gerhard

Jul 18 '05 #2
Thanks for your help. I remember once I tried a Python cookbook sample code
that included ctypes but now 'import ctypes' does not work.
Should ctypes come together with the 2.3 installation?

Károly

"Gerhard Häring" <gh@ghaering.de> az alábbiakat írta a következo
hírüzenetben: ma**********************************@python.org...
Ladvánszky Károly wrote:
What is the best way to access Win API functions that are not present in the various extension packages. Is writing a C extension the only solution?


You don't have to write a C extension, you can use ctypes instead.

-- Gerhard
Jul 18 '05 #3
Ladvánszky Károly wrote:
Thanks for your help. I remember once I tried a Python cookbook sample code
that included ctypes but now 'import ctypes' does not work.
Should ctypes come together with the 2.3 installation? [...]


No, it's a third-party module that you need to download and install.

Google says it's at http://starship.python.net/crew/theller/ctypes/, but
the Starship seems to be down ATM [1]. Maybe somebody has the ctypes
installer for Python 2.3 and can send it to you. I only have ctypes 0.2
for Python 2.2 here ATM.

-- Gerhard

[1] Probably the recent virus flood bogs down the server :-/

Jul 18 '05 #4
Gerhard Häring <gh@ghaering.de> writes:
Ladvánszky Károly wrote:
Thanks for your help. I remember once I tried a Python cookbook sample code
that included ctypes but now 'import ctypes' does not work.
Should ctypes come together with the 2.3 installation? [...]


No, it's a third-party module that you need to download and install.

Google says it's at http://starship.python.net/crew/theller/ctypes/,
but the Starship seems to be down ATM [1].


It's only DNS woes. Try IP 217.160.219.194.

Cheers,
mwh

--
Darned confusing, unless you have that magic ingredient coffee, of
which I can pay you Tuesday for a couple pounds of extra-special
grind today. -- John Mitchell, 11 Jan 1999
Jul 18 '05 #5
Ladvánszky Károly wrote:
Thanks for your help. I remember once I tried a Python cookbook sample code
that included ctypes but now 'import ctypes' does not work.
Should ctypes come together with the 2.3 installation?


It's available here: http://sourceforge.net/projects/ctypes

-- Gerhard

Jul 18 '05 #6
And if you are going to write a GUI app for windows with ctypes, you
might want to check out:

http://venster.sourceforge.net/

It already contains a lot of usefull stuff for windows GUI programming.

Henk.

Gerhard Häring <gh@ghaering.de> wrote in message news:<ma**********************************@python. org>...
Ladv nszky K roly wrote:
Thanks for your help. I remember once I tried a Python cookbook sample

code
that included ctypes but now 'import ctypes' does not work.
Should ctypes come together with the 2.3 installation?


It's available here: http://sourceforge.net/projects/ctypes

-- Gerhard

Jul 18 '05 #7

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

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
0
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
1
by: com | last post by:
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ......
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.