win32file import fails

Peter Åstrand peter at cendio.se
Mon Dec 16 07:31:50 EST 2002


On Mon, 16 Dec 2002, Mark Hammond wrote:

> This is a known problem - the CancelIO function does not exist on Win95.
> Unfortunately, no one has submitted a patch, and I haven't had the time to
> make a fix.

I see. I've looked a bit at the source now. As far as I understand, it 
would suffice to just comment-out this line in win32file.i:

BOOLAPI CancelIo(PyHANDLE handle);

I haven't found any suitable defines for an #ifdef, but maybe you have a 
clue?

My main problem right now is that I do not have access to Microsoft 
Visual Studio, so I cannot build. 

Regards,
Peter


> > -----Original Message-----
> > From: Peter Åstrand [mailto:peter at cendio.se]
> > Sent: Monday, 16 December 2002 9:14 PM
> > To: Hiroaki_Hanaoka at justsystem.co.jp; mhammond at skippinet.com.au
> > Subject: win32file import fails
> >
> >
> >
> > I'm unable to import win32file under Windows 95. I get:
> >
> > ImportError: DLL load failed: En enhet som är ansluten till datorn
> > fungerar inte.
> >
> > The last sentence is in Swedish. It means "A device connected to the
> > computer does not work".
> >
> > I've tried both win32all-148 and win32all-150, with Python 2.2.2. Any
> > ideas?
> >


-- 
Peter Åstrand                Telephone: +46-13-21 46 00
Cendio Systems               E-mail: peter at cendio.se
Teknikringen 3
583 30 Linköping







More information about the Python-list mailing list