Results 1 to 7 of 7

Thread: Return Error info from ActiveX Dll to User Application

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2018
    Posts
    35

    Return Error info from ActiveX Dll to User Application

    I create ActiveX Dll to serve my own applications.
    What is the best way to return error from dll to app?

    My dll has the Dll_class and several support modules.
    And app has the App_class, which create the instance of Dll_Class with events.
    In App_module declared and created several instances of App_class for various purposes.

    Dll_class functions returns any values on success and 0(zero) if something goes wrong.
    However, cause this 0(zero) is noninformative, so I create in Dll_class a special function,
    that returns my own last error number and description, when App recieving 0(zero) call its.
    This Error values saved in class level variables and refreshed each time, when Dll_class function decide to return 0(zero).

    Maybe I invent an another bicycle, but there are best practices solutions for a long time already?..

    Solutions are existing of course, but, unfortunately, not in those places where I was intensively looking for it :)
    .
    Last edited by asbo; Jun 23rd, 2018 at 05:26 PM. Reason: Typo in Title

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width