473,387 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MSVC6 "This application has failed to start " python24_d.dll &c

I am building a C++ program (main.exe) with VC6 which expects to call the
Python DLL. When I start it (under the debugger), I get: "This application
has failed to start because python24_d.dll was not found. Re-installing the
application may fix this problem."

I built Python24_d.dll using VS.NET 2003 (which I bought specifically for
that purpose but cannot use for our project, boo hoo).
I am building a debug version of main.exe which I linked with python24_d.lib
(which is in the same directory as python24_d.dll).

Under Settings | Debug | Additional DLL I have selected (using the IDE's
browse facility) E:\Bill\Python-2.4.1\PCbuild\python24_d.dll as a DLL to be
loaded at start up.

Py_Main is referenced in the main.exe I have built. Using "dumpbin /all
main.exe" the only reference to Python I can find is:

python24_d.dll

4A2C94 Import Address Table

4A268C Import Name Table

0 time date stamp

0 Index of first forwarder reference

2D3 Py_Main

"dumpbin /all python24_d.dll" runs well and shows Py_main is indeed at
0x2d3.

How can I find out what is going wrong?

I cannot persuade the debugger to stop before the message is sent to trace
it (which might not be much fun anyway, but I've done it for Python before
now).

Could the DLL be corrupt or inconsistent with the LIB file (perhaps because
it was built from C)?

Does it matter that in the Properties of Python24_d.dll it says the Original
File Name was python24.dll

Does it matter that my program (and MSVC6 etc) are in H: but the DLL is in
E:?

LoadLibrary() documentation says the OS searchs PATH (not LIBPATH, of
course). I have a PATH of "C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\Microsoft SDK\Bin\.;C:\Program
Files\Microsoft SDK\Bin\WinNT\;E:\Bill\Python-2.4.1\PCbuild" (note the last
entry).

TIA

Bill

PS And the file really does exist:

E:\Bill\Python-2.4.1\PCbuild>dir E:\Bill\Python-2.4.1\PCbuild\python24*.*
Volume in drive E is Data
Volume Serial Number is 7864-C6B8

Directory of E:\Bill\Python-2.4.1\PCbuild

19/05/2005 15:00 2,568,192 python24_d.dll
19/05/2005 15:00 114,047 python24_d.exp
19/05/2005 15:00 189,890 python24_d.lib
19/05/2005 15:00 2,935,808 python24_d.pdb
4 File(s) 5,807,937 bytes
0 Dir(s) 21,821,677,568 bytes free

E:\Bill\Python-2.4.1\PCbuild>
Jul 19 '05 #1
0 2009

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: camaro77 majau via DotNetMonster.com | last post by:
Sorry by my english but i'm from spain. I have a problem and after search by the web i have know that is due by framework. The message is : setup error "failed to load ressouces from resource...
2
by: Robert Creager | last post by:
I'm receiving the following error during startup: Aug 10 14:11:27 thunder postgres: LOG: failed to create socket: Address family not supported by protocol Aug 10 14:11:27 thunder postgres: ...
6
by: Le, Thanh-Nhan | last post by:
Hi, I am a beginner in .NET. I am creating a new project. At begin I created this project with a form, then a class."start" I want to use class "start" as start point for this program. In this...
0
by: Boris | last post by:
I install embeeded visual C++ sp2 (eVC 4.0) on new instalation of windows XP pro en SP1 () (with no update). Then I to install SDK for windows ce dot.net 4.2. Installation failed with error...
6
by: Steve4D | last post by:
With an ASP.NET application, I try to run an external program (like EXE, BAT) with a logon of an another user. I use CreateProcessWithLogonW from API "advapi32.dll" . When my ASP.NET application...
2
by: s2s Paris | last post by:
<<"failed to open stream no such directory or file>> Avez vous trouve ? J'ai le meme genre de probleme en essayant d'installer en local avec SuSE 10 apache2 php4 , il me semble qu'il manque un...
5
by: xieliwei | last post by:
I have a freshly installed openSuSe 10.2 with PHP4 from http://download.opensuse.org/repositories/home:/michal-m:/php4/openSUSE_10.2/ (openSuSe abandoned PHP4 since version 10, but I have customers...
3
by: kimiraikkonen | last post by:
Hello experts, I want my external application run from the root folder where my project (.exe) resides. For example, my main project (.exe) should be in the same directory with my external file...
2
by: tvnaidu | last post by:
valgrind error - "failed to start tool 'memcheck' for platform x86-linux" no such file or dir copied all lib and bin files which are generated after I compiled valgrind package, when I run my exe...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.