Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Register OCX automatically
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00526982
Message ID:
00527757
Views:
38
Yes, it should work in any version, just the location of controls may be different, for example:
llRegistered = RegisterControl("c:\windows\system\comctl32.ocx")
llRegistered = RegisterControl("c:\winnt\system32\comctl32.ocx")


>Nick, thanks for your reply
>
>I have had a quick look at the URL and did not see any refernece to OS
>
>Do you know if the code works in Win 95/98/2000 and NT ?
>
>Regards,
>
>Gerard
>
>
>
>>>Is there a way of registering a component automatically ?
>>>What I would like to do is:
>>>
>>>From my Main .PRG file:
>>>-----------------------
>>>
>>>If MyOcx is not already registered
>>> Register MyOcx now
>>>Endif
>>>
>>>I will also need to know if the system is Win95 or WinNT (If it matters)
>>>
>>>Anybody any ideas on this ?
>>>
>>>Regards,
>>>
>>>Gerard
>>
>>Gerard, see "How to register/unregister an OCX/ActiveX programatically" FAQ#7699
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform