Catch reference error how?

  • Thread starter Thread starter Dikbill
  • Start date Start date
D

Dikbill

Hi there,

I've got a Windows project with references to an ocx file.
When I run the executable and the referenced ocx isn't
available I get a Windows error.

How can I trip a reference error so that I can display a
readable error message?


Tx a lot,

Dikbill, The Netherlands
(e-mail address removed)
 
Dikbill said:
I've got a Windows project with references to an ocx file.
When I run the executable and the referenced ocx isn't
available I get a Windows error.

How can I trip a reference error so that I can display a
readable error message?

I suggest to deploy the application using a setup (MSI package) which will
make sure the OCX file gets installed properly on the destination machine.
By choosing this approach you won't have to work around about deployment
problems in your own source code.
 
Thanx for your quick response.
I do already use a MSI package but users sometimes
remove the ocx/dlls which are needed.
Then they get a message which realy says nothing of what is
wrong at that time.

I want to give a clear error message so they can call out support
number with a good error message so the time to resolve the problem
will be as short as possible.

Thnx again,

Dikbill, The Netherlands
(e-mail address removed)
 
Back
Top