Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare dll if it exists
Message
From
31/03/2009 16:47:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01392477
Message ID:
01392490
Views:
65
>>>I have an app that runs in winxp desktops and also terminal server. If running on terminal server it needs to "declare integer WTSQuerySessionInformation in Wtsapi32.dll". If the app is running on xp it needs to skip this as it won't exist. What is a good way to determine how to load this dll or not?
>>
>>Is FILE() function didn't work for you?
>>
>>IF FILE("Wtsapi32.dll")
>>   DECLARE ....
>>ENDIF
>>
>
>I don't think file() will find it in the windows system directory?

Something like:
lcpath = GETENV('windir')+"\system32\"
? FILE(lcpath+'zstream.dll')
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform