Solved

DLL in Windows NT v/s Windows 95

Posted on 1998-09-15
4
195 Views
Last Modified: 2010-04-02
Hi,
I have a dll created with Visual C++ 6.0. This dll have a
recursive function. When I use this recursive function under
Windows 95, it works, but when I try it under Windows NT, it
doesn´t work (the application goes down). Why??. Can you help me?
0
Comment
Question by:fggd
4 Comments
 
LVL 22

Expert Comment

by:nietod
Comment Utility
There is no specifc reason for this.  You certainly can have recursive functions in either.  There has to be a bug in what you wrote.  Can you post the code for the function (and any functions it calls).
0
 

Expert Comment

by:btranmer
Comment Utility
Make sure that the functions you are using behave similiarly in NT and 95.  Certain functions, especially "Ex" functions, i.e. MoveFileEx, WriteFileEx, etc., are either unsupported  or ignore paramaters or only allow a subset of parameters, etc. on Win95.

--
And make sure that you have the "WORK_WITH_95" flag in the compiler settings. (just a joke :)
0
 
LVL 11

Expert Comment

by:alexo
Comment Utility
First, try to move the function from the DLL to the main app to see if the problem is in the function code or elswere.
0
 
LVL 1

Accepted Solution

by:
plebel earned 200 total points
Comment Utility
Many API calls on Windows 95 are not compatible with Windows NT 3.5 also any new GDI ressources like TreeView, ListView, ThombNail and so...

Some are not compatible neither on Windows NT 4.0 as DIRECTX functions

check all of the API calls you use (when it crash) to see (with quick info) if they are all compatible with Windows NT
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

763 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