Re: ocs not found error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi sand,

Your control and its interfaces have been given GUIDs by the wizard.
Put your OCX in the current directory with your application then run:

regsvr32 MyCtrl.OCX

Now when your VB program creates an object of this type, it will
locate your control via the Registry. Once your OCX hits the streets
you may no longer just change your project, recompile and send out a
new program. This is because once an interface is defined it must
remain immutable forever.

You must use GuidGen and create a set of new GuiDs for you modifed
OCX, ship it with your new EXE and register the new one. If you only
change internal implementation and don't change any of the exposed
methods, properties, events nor their types, nor the number and types
of their parameters or return values, then you can ship a corrected
OCX since to the outside world it has remained the same. (i.e.
immutable)

If you are sending your users a CD for installation you can use the
Visual Studio 6 Package and Deployment wizard to create a CAB file for
you. Installing ActiveX controls via the internet is a bit trickier
largely because people consider them to be dangerous (with good
reason, I might add). You can ZIP your setup.exe and CAB files and
put them on the internet though.

- Kurt

On 30 Jun 2005 23:46:23 -0700, "sandSpider" <m74.piscean@xxxxxxxxx>
wrote:

>Hi,
>
>I developed V application . It had my own VC++ ocx componenet.Now I
>ported or compiled this VB application as windows exe,
>
>I copied this exe file and ocx component and placed them on PATH in
>another computer.
>
>When I run this VB exe application , I get this abc.ocx component not
>found...
>
>Help me...whats the problem..
>Do I have to register this componenet on every computer where this exe
>is used...If yes then how ?
>
>Can I push this registring part into the VB exe....without involving
>the user in these registration things...
>
>Help me please...
>Thanks
>sandSpiderX

.



Relevant Pages