Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FAQ: How to register/unreg an OCX programatically
Message
From
24/02/1998 08:33:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00080733
Message ID:
00080742
Views:
32
>I came across an FAQ titled "How to register/unregister an OCX/ActiveX programatically" by Paul Vlad Tatavu. To call the function, you need the WINDOWS\SYSTEM path:
>
>llRegistered = RegisterControl("c:\windows\system\comctl32.ocx")
>
>I was wondering if there is a way in VFP to get the path to the users WINDOWS\SYSTEM directory where the OCX's reside. I know on some PC's, the path is not always WINDOWS\SYSTEM because the user changed the name at install. I have seen some named WIN95\SYSTEM. Is there a way to capture this path in VFP like a lot of the installation software programs do?
>
>TIA,
>
>James

For windows directory there is an environment variable named "winbootdir".
? getenv("winbootdir")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform