From an application, there is a call to functions in a DLL. I don't have access to the source code of this DLL, neither to the source code of the application. In one of the functions of the DLL there is an error that I want to solve. What I want to do is to rename the original DLL to another name. Then I will create a new DLL with the same name as the existing DLL and add a class with the same name as the Class in the original DLL. In the new DLL I implement a rewritten function of the function that causes the error in the original DLL. This will work.
The old situation:
Application --------- Original DLL with Class 'Test_Class'
The situation I am looking for:
Application --------- My own DLL with same name and Class --------- Original DLL with Class 'Test_Class'
The problem now is that the call of the other functions in the DLL are not available this way. I want to solve this by using inherits, but this throws an error. Example of the new class in the DLL:
Public Class GCS_General_Functions
Function X as string
But this throws an error 'Class 'GCS_General_Functions' cannot inherit from itself'. Is there a way to solve this problem?