Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows 2000
Message
From
01/08/2000 17:32:07
 
 
To
01/08/2000 16:42:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00399044
Message ID:
00399614
Views:
34
>Barbara,
>I found one of the problems. When my app first starts it checks to see if MSProject is installed. I use the following code
>cOptPath = ""
>DIMENSION aCLSIDs[1]
>
>SET CLASSLIB TO registry.vcx ADDITIVE
>oReg = CREATEOBJECT("Registry")
>
>*Grab array of CLSIDs
>IF oReg.EnumOptions(@aCLSIDs,cOptPath,"",.T.) # 0
> RETURN .F.
>ENDIF

Geesh, man, this is total overkill. Try just checking for the _ProgID_ directly, under the HKCU. No need to load every progid into an array.

(BTW, a CLSID, is not a ProgID). "MSProject.Application" is a ProgID.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform