Re: Move files/directories to Recycle Bin using standard Python libs

2007-08-15 Thread Kevin D.Smith
On 2007-08-15 13:02:24 -0600, "Chris Mellon" <[EMAIL PROTECTED]> said: > Not easily. The recycle bin is part of the shell, and the shell api > calls have very complicated struct parameters that are cumbersome to > use correctly from ctypes. If you do the work to map the fileop > structs to ctypes y

Move files/directories to Recycle Bin using standard Python libs

2007-08-15 Thread Kevin D.Smith
I would like to move files and directories to the Recycle Bin on Windows from Python. I have found some older articles describing how to do this, but they require additional packages to be installed. I'm working on a plugin for an existing project and only have the standard library to work wi

Py_DECREF/Py_INCREF as Functions?

2007-03-30 Thread Kevin D.Smith
I'm trying to use Python from another application that allows me to load functions from a DLL. While I have most of the API working, I have one big problem: Py_DECREF and PyINCREF are macros which I can't load from the Python DLL. Since I can't decref any objects, I'm leaking memory all over

Re: How to build extensions on Windows?

2006-09-13 Thread Kevin D.Smith
On 2006-09-07 13:20:13 -0400, "Jason" <[EMAIL PROTECTED]> said: > I don't know about MinGW, but you can get the Microsoft compilers by > installing Visual C++ 2005 Express. I'm guessing the old toolkit is > deprecated. While you must register each Visual Studio Express module > that you download,

Re: How to build extensions on Windows?

2006-09-07 Thread Kevin D.Smith
On 2006-09-07 09:28:42 -0400, [EMAIL PROTECTED] (Lawrence Oluyede) said: > Kevin D. Smith <[EMAIL PROTECTED]> wrote: >> Then there is Mike Fletcher's web page >> (http://www.vrplumber.com/programming/mstoolkit/) that describes in >> detail how to build extensions, but most of the links to extern

How to build extensions on Windows?

2006-09-07 Thread Kevin D.Smith
I've written a simple Python extension for UNIX, but I need to get it working on Windows now. I'm having some difficulties figuring out how to do this. I've seen web pages that say that MS Visual Studio is required, and other that say that's not true, that MinGW will work. Then there is Mike