Link to home
Start Free TrialLog in
Avatar of fggd
fggd

asked on

DLL in Windows NT v/s Windows 95

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?
Avatar of nietod
nietod

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).
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 :)
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.
ASKER CERTIFIED SOLUTION
Avatar of plebel
plebel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial