Solved

Error:File not found(2)

Posted on 1997-08-27
4
188 Views
Last Modified: 2010-04-06
O.K. I have a delphi program which I can build up in Delphi 1 under Win95 and Win311. It only uses standard Delphi 1 controls and dialogs etc. I use two external 16bit DLL's both are present at run and build time. It runs fine under Win95 but under 3.11 it crashes complaining about not being able to find a file.

I can build and run it from Win95 fine.

I can build (but not run) it from 3.11 and then run the EXE from 95 and it works fine????

Any help would be greatly appreciated.
0
Comment
Question by:Ray(2)
  • 2
4 Comments
 

Expert Comment

by:xire
ID: 1342642
Hi!
Maybe try to copy these DLLs into windows system directory or in directory which is specified in path.

hope it helps
Eriks
0
 

Author Comment

by:Ray(2)
ID: 1342643
Hi,

Firstly thanks for answering, but I have already tried this.
It is as though it is looking for some other DLL's that I haven't
realised that it needs.

Any other help would be appreciated.

Ray
0
 
LVL 2

Accepted Solution

by:
icampbe1 earned 50 total points
ID: 1342644
I ran into this as well.  Believe it or not, the doc is wrong :)  Under Wn95, you can specitfy the full name of a dll (like mylib.dll) when you specify the external.  When you run the same program under Win31, it wont find it.  You can get it to work by just using the dll file name without the .dll suffix.
Win31 seems to want to add its own suffix.  Then the regular path stuff applies to the location of the dll.

Hope this helps.

Ian C.
0
 

Author Comment

by:Ray(2)
ID: 1342645
Thanks a lot, believe it or not I actually found it about 5 minutes before I read your reply.

Many thanks to all who helped.
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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

789 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