Gertjan Klein wrote: > Out of pure curiousity (I used to write a lot of assembler, but those > days are long gone) I tried your code, and it works as advertised -- on > Python 2.6. It fails on Python 2.5 with "WindowsError: exception code > 0x20800", but oddly I've also seen error code 0x1020800. I couldn't find > much about either of these errors on the Internet. Any idea what could > be wrong? I know Python 2.5 and 2.6 use different C runtimes, but the > created DLL is completely independent. >
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. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32