Re: test whether ocx is registered from VB, possible?
- From: Some Fred <bla@xxxxxxx>
- Date: Sun, 10 Jul 2005 05:25:46 +0200
On Sat, 09 Jul 2005 13:40:48 -0700, mscir <mscir@xxxxxxxxx> wrote:
>have 0 bugs) for now I will register it every time the program is run.
>I'm working through the other approaches to see if I can trap an error
>in the case of an unregistered condition, since this seems preferable to
>writing the same value to the registry over and over.
Stick sthing like this in Main() in the starting module:
Sub Main
On Error Goto BadOCX
Dim MyOCX As SomeOCX.SomeObj
Set MyOCX = CreateObject("SomeOCX.SomeObj")
MyOCX = Nothing
Exit Sub
BadOCX:
MsgBox "An OCX could not be loaded"
End
End Sub
.
- Follow-Ups:
- References:
- test whether ocx is registered from VB, possible?
- From: mscir
- Re: test whether ocx is registered from VB, possible?
- From: Mark Yudkin
- Re: test whether ocx is registered from VB, possible?
- From: Ken Halter
- Re: test whether ocx is registered from VB, possible?
- From: Some Fred
- Re: test whether ocx is registered from VB, possible?
- From: mscir
- test whether ocx is registered from VB, possible?
- Prev by Date: Re: .ini .dat or registry question
- Next by Date: Re: test whether ocx is registered from VB, possible?
- Previous by thread: Re: test whether ocx is registered from VB, possible?
- Next by thread: Re: test whether ocx is registered from VB, possible?
- Index(es):
Relevant Pages
|
Loading