Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

DLL Cannot start - error

Posted on 1997-07-01
2
230 Views
Last Modified: 2010-10-05

I am using Delphi2 in Win95, on a Pentium 150 with 16Mb
RAM.

I am attempting to use a DLL. I have declared the routines
as:

   interface
   .
   .
   procedure Something; StdCall; {As directed by Dll doc}
   .
   .
   Implementation
   .
   .
   procedure Something; external 'cbw32.dll';
   .
   .



However I get the error:
           "The CBW32.DLL file cannot start.
          Check the file to determine the problem"

The Dll is in the same directory as my project.
I also have the project directory in the search
path under project options.

Compiler options are: {$D+,S+,L+,F+}

What should I do ?
0
Comment
Question by:jturpin
2 Comments
 

Accepted Solution

by:
XSpider earned 100 total points
ID: 1338062
try one of following: replace word 'procedure' by 'function' external 'cbw32.dll'; replace with  external 'cbw32.dll' name 'Something';this may help
0
 
LVL 1

Author Comment

by:jturpin
ID: 1338063
The problem was that the Dll in question was actually
relying on another DLL which was not documented,
and which was not in the search path. Once I added
this additional Dll to the search path, everything
went ok.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question