How to convert vbs file to dll




















How to make class. Like this: Like Loading March 28, at AM. March 28, at PM. Noor Sheikh says:. March 29, at AM. Java is best platform but so difficult…. March 29, at PM. March 30, at AM. Sumit Gosai says:. Sumit says:. April 19, at AM.

April 20, at AM. Amit Dev says:. April 4, at PM. April 7, at AM. April 7, at PM. Mansoor Alam says:. This cannot be done with WSH languages without extensive rewriting but it can be done. If you create an ActiveX cont4reol then it can be called from compiled languages.

There i no way to do this automatically. Some simple code may compile easily such as a simple class. We must create a class module and copy the body code into the module. This could be automated by devising an edit program that creates class modules by scanning script. We would then have to edit these by hand to resolve the syntactical differences.

We can also use the command line compilers and generate an error file that may allow for some automation of simple edits. In my experience redesigning the code using the script to tell us the 'what' is a far more productive approach. I have long warned companies and admins about investing too much time into building fancy maintenance tools with VBScript.

We see now that VBScript will be limited in newer systems so merging information between new and old may be an issue. PowerShell can instantiate the script control.

This willhelp to keep admins away from compiled code. Maintenance code should not be compiled or done so only for very targeted issues. This will prevent sophisticated bugs from becoming fixed in your system. PowerShell provides a measure of isolation from faulty code or code that has no source. This thread was marked as answered nearly 12 months ago and now appears to be evolving into something else.

Please start a new question. We are obviously talking about two entirely different things here. In that part of the thread, you responded to my post with the statement that the MS script encoder was applicable to VBA only.

I was merely trying to clarify my original point that the script encoding utility referenced in earlier posts was for use with VBS files that were then rendered as encrypted VBE files that can be executed via the conventional Wscript and cscript hosts. I have no quibbles with anything else you have written about converting VBS into a compiled language or in using them in the script control within a compiled application.

I also don't have anything useful to offer in that particular arena. Your offerings seem quite to the point in that regard. How do i access the vbscript from a dotnet application when encoded or does it just encode to html or web language which is useless to my environment? If i can encode to dll file then goodie goodie because iam writing a class in vb. I misread your post about. I didn't stop to think that vbscript vbs files are tagged vbe and the link you posted talks mostly about HTML and ASP which do not have a vbe extension.

The extension vbe is the redecorated vbs file extension. Bill - sorry I missed that. I suppose you could split this off with a title of 'How to use vbs and vbe files from dotNet'. Office Office Exchange Server. Not an IT pro? Resources for IT Professionals. Sign in. United States English. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. The Official Scripting Guys Forum!

If your answer is "yes," you know what to do. Dive in and help somebody! If your answer is "no," welcome to our fun little world! We'd recommend that you first head over to the Script Center, get your feet wet, and then come back to either ask or answer questions. We can't be everywhere at once we know—shocking!

The Microsoft Scripting Guys 1 5. Sign in to vote. Hi, I am having some set of codings in vbscript i need to convert tht file into dll for security purpose. How it can done?? Any idea?? How can i do this??? Shall i need to convert it to COM component and install them???? Posts: 57 Threads: 0 Joined: Jan Reputation: 0.

It's just a little extra XML. You need to register the dll in the Global Assembly. Posts: 1 Threads: 0 Joined: Dec Reputation: 0. View a Printable Version Subscribe to this thread. Linear Mode. Threaded Mode. Lost Password?



0コメント

  • 1000 / 1000