Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-07 Thread Gertjan Klein
Tim Roberts wrote: >Very interesting. I tried this on Python 2.5.2 on my Windows 7 64 >system (using 32-bit Python). The C version works fine, but the >assembler version gets a "DLL initialization error". I fixed that by >adding "mov eax, 1" to the "start" routine. See if that helps your issue

Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-07 Thread Tim Roberts
Gertjan Klein wrote: > Interestingly, if I place a ret after the mov eax, [style] instruction, > or even comment out the cpuid instruction, I don't get an exception. > This makes me wonder whether there is something permission-related that > is different between Python 2.5 and 2.6 -- perhaps the 2.

[python-win32] 'No such interface supported' question

2010-01-07 Thread Gareth Walters
Hi Nick, I have done some python work before but I new to the COM stuff. I am trying to Create a MXD and layers to it from python. I have been looking at this PythonNet stuff and it is all getting a bit blurry. I was wondering if you could give me some pointers to basically get python reco

Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-07 Thread Gertjan Klein
Tim Roberts wrote: >However, I'll bet I know what it is. CPUID trashes ebx, and in the x86 >calling sequence, that's supposed to be saved and restored. That's it! Now, both Python 2.5 and 2.6 (and 3.1, if I change the print statement) run this code successfully. Does that mean there is a differe