Solved

DLL in Windows NT v/s Windows 95

Posted on 1998-09-15
4
216 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
ID: 1172807
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
ID: 1172808
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
ID: 1172809
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
ID: 1172810
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lambda for random numbers problem 7 113
How to gracefully close the c++ 11 thread? 3 96
c++ syntax question 9 49
gdb doesn't stop on breakpoint 2 69
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

832 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