Solved

Error:File not found(2)

Posted on 1997-08-27
4
190 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)
[X]
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
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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