This application has failed to start because [dll not found]



With VC6, I am building a program which expects to call the Python DLL
(http://www.python.org/2.4.1/).

"This application has failed to start because python24_d.dll was not found.
Re-installing the application may fix this problem."

I have linked using the python24_d.lib (which is in the same directory as
python24_d.dll).

Under Setting | Debug | Additional DLL I have selected (using the IDE's
browse option) 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 on
main.exew 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

How can I find out what is going wrong? Could the DLL be corrupt or
inconsistent with the LIB file (perhaps beacuse it was built from C)?

TIA

Bill


.



Relevant Pages

  • Re: Building a C# library
    ... Select the dll from there... ... from which you'll able to reference your DLL project. ... Don't reference the DLL file directly... ... > OK so I have a project, it's built and saved. ...
    (microsoft.public.dotnet.languages.csharp)
  • Calling a Fortran DLL from .NET application
    ... I'vea DLL that's built using Fortran. ... When I tried to reference it in a .NET project itgives an error message saying that "It's not a valid COM component". ...
    (microsoft.public.dotnet.framework.interop)
  • Re: how do i use a dll ?
    ... i've managed to create a class library project and put all my functions in there and then built the project and now i have a dll file in the /bin/debug dir. ... Reference the dll from your "other" project. ... This will take a local copy of the dll that has to be distributed along with your calling application (.exe + local .dll). ... Reference the dll from where you compiled it - this time, it /won't/ take a local copy of it. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: This application has failed to start because [dll not found]
    ... I am building a program which expects to call the Python DLL ... > only reference to Python I can find is: ... > with the LIB file (perhaps beacuse it was built from C)? ...
    (microsoft.public.vc.ide_general)
  • PInvoke question (caling conventions of C DLLs)
    ... I want to call functions in a Win32 DLL from VB. ... The DLL in question, is the Python DLL. ... I have noticed something strange. ...
    (microsoft.public.dotnet.languages.vb)

Loading