|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Register an OCX
I have downloaded an ActiveX ocx and I want to use it in my VB project.
How do do that? Do I need to register that ocx in the registery ? If yes, how to do the same. |
|
#2
|
||||
|
||||
|
you will need to find the logical location of the OCX (C:\YourPathtoOCX). They are usually placed in InstallDrive\Windows\System32
Then, you just run the regsvr program. Depending on what version of Windows you have, it can either be regsvr or regsvr32. If you're running WinXP, then go to run on the start menu, and type the following (replace where appropriate) regsvr32 "C:\Windows\System32\YOUROCX.ocx" and then hit enter. Then, open VS (VB) and go to project/components, and add the control. good luck
__________________
Fisherman "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein |
|
#3
|
|||
|
|||
|
After u register the ocx file, u can refer it to the project.The reference Step:
click project menu->Reference->Select your ocx file. |
|
#4
|
||||
|
||||
|
sorry bout the last part of my post.. I was thinking in ActiveX terms in referencing a component instead of an object!
|
|
#5
|
|||
|
|||
|
I think I have to go to components, as its an ocx and not a Dll or Exe.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Register an OCX |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|