Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry and INI
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00686035
Message ID:
00686141
Views:
57
>I had a look at the Init() of cAboutForm. Here's what I found out:
>
>
>DO CASE
>  CASE UPPER(OS()) = "WINDOWS NT" OR UPPER(OS()) = "WINDOWS 4" OR UPPER(OS()) = "WINDOWS 5"
>    *-- Gets default user name, organization, and location of MSINFO.EXE from
>    *-- system registry
>    loSystemSetting = CREATEOBJECT("CRegistry")
>
>    this.cMSInfo = ;
>      loSystemSetting.Get(KEY_SHARED_TOOLS_LOCATION, "Path", "", HKEY_LOCAL_MACHINE)
>
>
>So it should still work ... cRegistry is instantiated here (BTW: Why not via the abstract factory?). Could it be, that the OS() function doesn't return a string that matches the CASE condition in W2K (I think it was W2K you're working with!?)

You can check out http://fox.wikis.com/wc.dll?Wiki~VFPFunctionOS~VFP that documents what OS() will return. Looks like Kevin has all the OSs covered including WinXP Pro. Sounds like Marcus may need to put a suspend into his About form INIT and see where it is trying to pull the Registered User etc. from.

Dan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform