Re: [python-win32] Compiling Python as a static .exe

2014-01-20 Thread Mark Hammond
[oops - resending with CC to python-win32 list] On 21/01/2014 12:12 AM, Russell Wallace wrote: Hi, I'm trying to compile Python 2.7.6 as a statically linked 64-bit Windows executable, and I'm getting a weird error message. As per http://stackoverflow.com/questions/21231439/unresolved-external-s

Re: [python-win32] Access coclass interface?

2014-01-20 Thread Mark Hammond
The problem is that the DLL isn't registered (or not registered in a way it can be used in your current config). First, check the bitted-ness of the library matches Python - eg, if you have a 64bit version of Python, the DLL will also need to be 64 bits (and ditto for 32 bits). If that checks

Re: [python-win32] CastTo interface from other library

2014-01-20 Thread Mark Hammond
On 21/01/2014 7:46 AM, Pieter Aarnoutse wrote: Any chance we can have some functionality like that in the release? Please submit a patch to sourceforge, and we'll see what we can do. Please be sure to make it is a patch rather than the full version of the modified function. Cheers, Mark _

[python-win32] CastTo interface from other library

2014-01-20 Thread Pieter Aarnoutse
In the win32com.client class CastTo method, it is assumed that the target interface type exists in the same library as the object to be casted. To work around that issue, I modified the method with an optional argument stating the target interface's library, as follows: def CastTo_mod(ob, target,

[python-win32] Compiling Python as a static .exe

2014-01-20 Thread Russell Wallace
Hi, I'm trying to compile Python 2.7.6 as a statically linked 64-bit Windows executable, and I'm getting a weird error message. As per http://stackoverflow.com/questions/21231439/unresolved-external-symbol-main-no-underscore I have a command line that looks like: cl /DPy_BUILD_CORE ... /link Adva