Solved

Error:File not found(2)

Posted on 1997-08-27
4
187 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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…

777 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