Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

12 Experts available now in Live!

Get 1:1 Help Now