Solved

Problem with app that works only from within Delphi...(and Win 95)

Posted on 1997-03-26
5
155 Views
Last Modified: 2010-04-06
I have encountered a rather odd problem using Delphi 1.0.

I have an app with:

DBF files for the data
bunch of standard controls (dbedit, tlist, tgrid, etc.)
Formula1 and First Impression VBX's


Now, here's the strange part:

I make a few function calls to the Formula1 DLL which work just fine, thank you very much, under Windows 95 OR when run from within Delphi (under Win 3.1). When running under Windows 3.1 alone, the app will not run at all - Windows reports the generic message "Cannot find file (or one of its components)etc."

Now, if I comment out any function calls to this DLL, everything works again.

What's so damned confusing is the fact that the app will run under Win 95 and from within Delphi...also, to add to the confusion, the same app used to work fine under Windows 3.1 before a few minor changes were made (nothing of consequence - a few label changes...).

Every DLL and VBX the app could possibly want is available to it (in the app's directory, in C:\WINDOWS\SYSTEM and also elsewhere in the search path).

Does anybody have any idea what could be the problem here? I might be able to find a workaround (might) but it seems to me that this is a symptom of a potentially dangerous problem...

Thanx in advance,
0
Comment
Question by:reality
5 Comments
 

Expert Comment

by:jwk031597
ID: 1334999
Did you put the DLL's in win95's system dir and in win311's system dir?
0
 
LVL 4

Expert Comment

by:marko020397
ID: 1335000
Try to make a new project and disable optimizations.
0
 

Author Comment

by:reality
ID: 1335001
Edited text of question
0
 

Author Comment

by:reality
ID: 1335002
Adjusted points to 75
0
 

Accepted Solution

by:
twiddly earned 70 total points
ID: 1335003
I believe I ran into a similar problem about a year ago.  I too had an app that ran fine on Win95 (the development platform) but not on Win31 (the target platform).

Look at how you're declaring the external DLL's. If memory serves me right, you must NOT include the ".dll" in the declaration, just use the file prefix.  (It's possible I have this backwards, so if you AREN'T using ".dll" then DO use it.)  
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
loading dll from external path 1 211
Mydac connection data base issue 3 140
Delphi TcxGrid group footer summary 3 211
Print Graphic and Text to Epson TM-T88v 12 185
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…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now