How to conditionally compile under win2k and NT4.0

Hi,

I am trying to build a DLL under Win2k and I am using it under NT 4.0 too.

But the DLL fails to Load under NT4.0.This is probably because of some Setup API

calls that I have used for USB enumeration under Win2k.

How do I conditionally compile my code to work under Win 2000 and Win NT4.0

thanks,

Gibb

Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in
Change the way you talk. Indiatimes presents “Valufon”, Your PC to Phone service with clear voice at rates far less than the normal ISD rates. Go to http://www.valufon.indiatimes.com. Choose your plan. BUY NOW.

It’s probably easier to LoadLibrary/GetProcAddress. If LoadLibrary
fails, do whatever you would have done inside the NT conditional block.

-sd

On Tue, 2002-12-03 at 12:09, ntdev wrote:

Hi,

I am trying to build a DLL under Win2k and I am using it under NT 4.0
too.

But the DLL fails to Load under NT4.0.This is probably because of some
Setup API

calls that I have used for USB enumeration under Win2k.

How do I conditionally compile my code to work under Win 2000 and Win
NT4.0

thanks,

Gibb


Get Your Private, Free E-mail from Indiatimes at
http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from
http://www.planetm.co.in
Change the way you talk. Indiatimes presents “Valufon”, Your PC to
Phone service with clear voice at rates far less than the normal ISD
rates. Go to http://www.valufon.indiatimes.com. Choose your plan. BUY
NOW. — You are currently subscribed to ntdev as:
xxxxx@positivenetworks.net To unsubscribe send a blank email to
%%email.unsub%%


Steve Dispensa
Chief Technology Officer
Positive Networks