At 02:13 AM 6/17/2011, David Aldrich wrote: >Hi
>I am building a 32-bit C++ application using Visual C++ Express 2008
>on 64-bit Windows 7. The application links to Python, so I
>installed 32-bit Python 2.7.2 by running python-2.7.2.msi.
>When I run my app, I get error:
>... python27.dll is missing from your computer ...
>and, indeed, it is in neither C:\Windows\System32 nor C:\Windows\SysWOW64.
>Please will someone suggest what I am doing wrong?
Maybe nothing, maybe something, too little information to know.
First, _look_ for the file. That is, find the file wherever it
is. Go to the command line and do
dir /s \ >allfiles.20110617a
Then look at that listing. WIth Python 2.7.2 which I just installed
the dll ends up in SysWOW64. And now I see that they are all there,
and nowhere else!
Directory of C:\Windows\SysWOW64
08/24/2010 07:47 PM 2,148,864 python26.dll
06/12/2011 03:09 PM 2,206,720 python27.dll
03/21/2010 01:43 AM 2,137,600 python31.dll
02/20/2011 10:29 PM 2,227,712 python32.dll
But in December they were in both places!
2010/11/23 21:42:42 2148864 /cygdrive/c/Windows/System32/python26.dll
2010/11/23 21:45:32 2286080 /cygdrive/c/Windows/System32/python27.dll
2010/11/16 20:16:31 2137600 /cygdrive/c/Windows/System32/python31.dll
2010/11/23 21:42:42 2148864 /cygdrive/c/Windows/SysWOW64/python26.dll
2010/11/23 21:45:32 2286080 /cygdrive/c/Windows/SysWOW64/python27.dll
2010/11/16 20:16:31 2137600 /cygdrive/c/Windows/SysWOW64/python31.dll
(Maybe something to do with the 32-bit vs. 64-bit installs
mis-direction? I use only the 32-bit now...)
Now, do another install of Python 2.7.2 on another machine. Do a
file listing. Where do the DLLs end up? Re-do the install on your
machine. Where do the DLLs end up?
Do some more checking and tell us what you've _found_ and where... >Best regards