vbscript

Find the DLL of an object created in VBScript


I have been asked to rewrite a website that was written in VBScript

I am now writing it in C#

On the old VBScript code they are creating a graphing object from this line of code

Set Chart = Server.CreateObject("csDrawGraph.Draw")

I assume that would be the name of the .dll file or is that incorrect? How do I go about finding that .dll file on the server so that I can then add a reference to it and use that in my C# code?

I have tried searching for csDrawGraph.Draw as well as csDrawGraph.Draw.dll in C:\Windows.System32 as well as the "wwwroot" folder and the GAC


Solution

  • I did in fact find it through the registry. It took a bit because once I found the key to it in HKEY_CLASSES_ROOT I did not see it in HKEY_CLASSES_ROOT > CLSID. So I did a search for the key in the Registry search and found it in HKEY_CLASSES_ROOT > Wow6432Node > CLSID. From there I was able to create a wrapper DLL, place that in my bin directory and then add a reference to it.