Solved

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

Posted on 1997-03-26
5
161 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
[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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

729 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