Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registry and INI
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00686035
Message ID:
00686141
Vues:
60
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform