There are multiple User defied dll files from which I need to extract Namespace, Class Names and Method Names and need to store in variables.
For example:
I have one file called MathLibrary.dll and it is placed at: C:\
Now I need some function that can get class names from it and store in variable.
public function getClass(dllFilePath)
end function
Note: Assume that we have only one class in dll file.
Now I need to extract all the methods from this class and need to set variables for this methods. See example below where we have Subtract method and given two parameters as input:
public function executeDLLMethod(class_Namespace, methodName,ParamString)
Dim myObj
Dim myClass
Set myObj = CreateObject(class_Namespace)
myObj.methodName()
end function
call executeDLLMethod("","Substract","10;5")
What I have tried:
I tried lot to get class names and methods from dll file using various methods. I was able to get all class names with ildasm.exe tool. However, I cannot use it as I need all the class names stored in a variable.