Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Jan : Windows 98 compatibility
| Subject: | Windows 98 compatibility |
| Posted by: | "Tim Anderson" (timjand@nospam.hotmail.com) |
| Date: | Sun, 27 Jan 2008 15:49:11 |
I added a NT-only external function to a DLL (see previous question about
security groups). I then found the DLL would not run on Windows 98, even
though my code did not call the function if Windows 98 was detected. I did
two things that fixed it:
1. Load the library dynamically with LoadLibrary.
2. Changed the type of one of the arguments from PWideChar to pointer.
I'm not sure whether the first step was necessary, as it wasn't enough to
fix the problem.
What are the rules here? In other words, what is the best way to code a DLL
that calls NT-only functions when running on NT, but has to work on Win9x as
well.
Tim