windows 7 64bits incorrect PATH when loading 32bits library on 32bits .exe
In my windows 7 amd64, I have an .exe which depends on libeay32.dll. Both, library and exe, are compiled for 32 bits. I have copied the exe to C:\Program files (x86)\app\bin and the dll to C:\Program files (x86)\app\lib. To ensure the correct working, i have added C:\Program files (x86)\app\lib to the path, following this: http://msdn.microsoft.com/en-us/library/ms682586%28v=vs.85%29.aspx The program its correctly launched/executed when done from start menu->program, but not directly on the .exe !!!??? Using sysinternal process explorer, i can see the app is launched correctly. Using cmd, the app works perfectly. On Windows 7 64 bits, when i run the exe, i got a libeay32.dll not found error. Using dependency walker for 32bits on the exe, the library is properly located at C:\Program files (x86)\app\lib. Using procmon i can see its trying to open (note the lack of " "): "C:\Program Files(x86)\app\lib\LIBEAY32.dll". In Computer properties, i re-re-re-checked PATH, and its correct: "C:\Program Files (x86)\app\lib" I tried setting "%programfiles(x86)\..." or "C:\Program Files (x86)\..." buth fails also. Is there a know scenario/bug where setting "C:\Program Files (x86)" on path, lead windows try to load "C:\Program Files(x86)" instead???? Windows 7 amd64 bug? Altough its not necesary, i tried both regsrv32 on syswow64 and system32 without success. Do you know if theres a registry key, other than HKLM\System\CurrentControlSet\Control\Session Manager\KnownDLLs for 32 and 64 enviroments, like Wow6432Node ? Any ideas will be much appreciated.
November 7th, 2011 6:31am

Hi, Regarding this kind of issue, it is better to post in MSDN forum. http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/threads Best Regards, NikiPlease remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
November 9th, 2011 4:45am

Continuing discussion http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9bceb82f-f353-4e63-8f54-32023f2ad001
November 9th, 2011 5:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics