Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry class for w2k/wxp?
Message
From
19/12/2002 19:57:21
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00734735
Message ID:
00734747
Views:
13
Thank you Sergey.


Ric

>Take a look at http://fox.wikis.com/wc.dll?Wiki~VFPFunctionOS~VFP.
>
>>Hi everyone,
>>
>>In the FFC folder on my machine is the registry.vcx. I noticed in the init() (Registry.Registry.init) that there is the call to define what your OS is. Here is the code there now:
>>
>>DO CASE
>>	CASE _DOS OR _UNIX OR _MAC
>>		RETURN .F.
>>	CASE ATC("Windows 3",OS(1)) # 0
>>		THIS.nCurrentOS = OS_W32S
>>	CASE ATC("Windows NT",OS(1)) # 0
>>		THIS.nCurrentOS = OS_NT
>>		THIS.cRegDLLFile = DLL_ADVAPI_NT
>>		THIS.cINIDLLFile = DLL_KERNEL_NT	
>>		THIS.cODBCDLLFile = DLL_ODBC_NT
>>	OTHERWISE
>>		* Windows 95
>>		THIS.nCurrentOS = OS_WIN95
>>		THIS.cRegDLLFile = DLL_ADVAPI_WIN95
>>		THIS.cINIDLLFile = DLL_KERNEL_WIN95
>>		THIS.cODBCDLLFile = DLL_ODBC_WIN95
>>ENDCASE
>>
>>
>>What about W2K or WXP?
>>
>> WXP returns "Windows NT ...." (can I assume the CASE... "Windows NT" is valid?)
>>
>> W2KServer and W2K return "Windows 5.00"
>> Which of those CASE statments above should I use? or is there a major revamp/update?
>> Or is there a major revamp/update I should have?
>>
>>TIA
>>
>>Ric
Previous
Reply
Map
View

Click here to load this message in the networking platform