How To Compile A Class Dll In Vb 2005 Express For Use From Vbscript?

There are some things I need to do that VB Script cannot do, so I made a class with the calls and checked the “make visible to Com” flag. Trying to register the dll with regsvr gives me a “no entry point found” error, and trying to add it to component services gives me a “no components found” error.
I am at the end of my rope and have searched google groups, msdn, and just about everywhere else. There does not appear to be any document that explains it so that it actually works.

Tags: , , , , ,

One Response to “How To Compile A Class Dll In Vb 2005 Express For Use From Vbscript?”

  1. Lord Soth says:

    Every time you recompile a .Net class the GUID associated with COM visibility changes, so you need to give your assembly a strong name and explicitly define a GUID.
    Also the generated DLL still contains .Net MSIL code. You should make VB to generate the proxy/wrapper COM DLL in addition to the first one and regsvr that new one. Both DLL’s are required and target PC need to have .Net framework installed.
    Loren Soth

Leave a Reply