Solved

DLL in Windows NT v/s Windows 95

Posted on 1998-09-15
4
233 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
[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
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

691 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