Catch reference error how?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dikbill

    #1

    Catch reference error how?

    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
    dikbill666@hotm ail.com


  • Herfried K. Wagner [MVP]

    #2
    Re: Catch reference error how?

    "Dikbill" <dikbill666@hot mail.comschrieb :
    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.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • Dikbill

      #3
      Re: Catch reference error how?

      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
      dikbill666@hotm ail.com


      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atschr eef in bericht
      news:eKRUCZexGH A.2264@TK2MSFTN GP02.phx.gbl...
      "Dikbill" <dikbill666@hot mail.comschrieb :
      >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.
      >
      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

      Comment

      Working...