[python-win32] Compiling win32 extensions
Mark Hammond
mhammond at skippinet.com.au
Sun Nov 18 03:11:48 CET 2007
Although VS8 is not officially supported and no official binaries are
released built with that version, you should find the CVS version of pywin32
builds cleanly with VS8, even if you target x64.
Cheers,
Mark
From: python-win32-bounces+mhammond=keypoint.com.au at python.org
[mailto:python-win32-bounces+mhammond=keypoint.com.au at python.org] On Behalf
Of MACKEITH Andrew
Sent: Saturday, 10 November 2007 5:58 AM
To: python-win32 at python.org
Subject: [python-win32] Compiling win32 extensions
I am compiling the win32 extensions on 32 bit windows using Microsoft Visual
Studio 8 (AKA .Net 2005)
I have had some problems with paths, but managed to solve these by manually
adding paths to the registry.
(I am puzzled that dsound.h appears in the SDK for ce, but not the regular
SDK.)
I am now stumped by these (related) compile errors.
win32apimodule.cpp
win32/src/win32apimodule.cpp(1266) : error C2664: 'GetFileAttributesW' :
cannot convert parameter 1 from 'Py_UNICODE *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
win32/src/win32apimodule.cpp(1451) : error C2664:
'PyUnicodeUCS2_FromUnicode' : cannot convert parameter 1 from 'wchar_t
[260]' to 'const Py_UNICODE *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
win32/src/win32apimodule.cpp(1975) : error C2664: 'DWORD
(LPCWSTR,LPWSTR,DWORD)' : cannot convert parameter 2 from 'Py_UNICODE *' to
'LPWSTR'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
Are these new errors in Visual Studio 8?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20071118/a33c5b8e/attachment.htm
More information about the python-win32
mailing list