locked
Convert a .txt file to .dll file

    Question

  • Hi Experts,

    Can somebody help me with this.

    I have one text.txt file and I want to covert it to .dll how I will do it?

    Monday, November 19, 2012 1:25 PM

Answers

  • You can't.  A text file is completely different than a DLL.  A DLL is code that has been compiled to a runnable format.  If your text file represents source code then you'll need to run it through the compiler for the language it was written in (VB, C#, C++, etc).  The process for this varies by compiler.  Most people just use a tool like Visual Studio to compile code.

    Michael Taylor - 11/19/2012
    http://msmvps.com/blogs/p3net

    • Proposed as answer by Amac01 Monday, November 19, 2012 8:50 PM
    • Marked as answer by Ashis_K Tuesday, November 20, 2012 4:25 AM
    Monday, November 19, 2012 1:41 PM
    Moderator
  • A simple minded solution is just to change the extension from txt to dll. Of course that does not make it a DLL. :)

    CoolDadTx's reply is the answer if you want a DLL and the txt contains valid source code.


    Regards David R
    ---------------------------------------------------------------
    The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
    Object-oriented programming offers a sustainable way to write spaghetti code. - Paul Graham.
    Every program eventually becomes rococo, and then rubble. - Alan Perlis
    The only valid measurement of code quality: WTFs/minute.

    • Marked as answer by Ashis_K Tuesday, November 20, 2012 4:25 AM
    Monday, November 19, 2012 1:51 PM
  • Thank you all for your valuable answer,

    I also thought like that.

    • Marked as answer by Ashis_K Tuesday, November 20, 2012 4:24 AM
    Tuesday, November 20, 2012 4:24 AM

All replies

  • You can't.  A text file is completely different than a DLL.  A DLL is code that has been compiled to a runnable format.  If your text file represents source code then you'll need to run it through the compiler for the language it was written in (VB, C#, C++, etc).  The process for this varies by compiler.  Most people just use a tool like Visual Studio to compile code.

    Michael Taylor - 11/19/2012
    http://msmvps.com/blogs/p3net

    • Proposed as answer by Amac01 Monday, November 19, 2012 8:50 PM
    • Marked as answer by Ashis_K Tuesday, November 20, 2012 4:25 AM
    Monday, November 19, 2012 1:41 PM
    Moderator
  • Hi!

    I don't think that is posible.. why do you want to convert it to a dll?

    Does the txt has code in it?

    In which language is the txt file developed?

    Regards!

    • Marked as answer by Ashis_K Tuesday, November 20, 2012 4:24 AM
    • Unmarked as answer by Ashis_K Tuesday, November 20, 2012 4:25 AM
    Monday, November 19, 2012 1:42 PM
  • A simple minded solution is just to change the extension from txt to dll. Of course that does not make it a DLL. :)

    CoolDadTx's reply is the answer if you want a DLL and the txt contains valid source code.


    Regards David R
    ---------------------------------------------------------------
    The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
    Object-oriented programming offers a sustainable way to write spaghetti code. - Paul Graham.
    Every program eventually becomes rococo, and then rubble. - Alan Perlis
    The only valid measurement of code quality: WTFs/minute.

    • Marked as answer by Ashis_K Tuesday, November 20, 2012 4:25 AM
    Monday, November 19, 2012 1:51 PM
  • Thank you all for your valuable answer,

    I also thought like that.

    • Marked as answer by Ashis_K Tuesday, November 20, 2012 4:24 AM
    Tuesday, November 20, 2012 4:24 AM
  • Hello I Dont Want It Excutable I Wanna Use It In cheat Engine So I can Steal A Place In Roblox

    Tuesday, June 02, 2015 3:50 PM
  • How would I convert a C++ .txt file into a .dll with Visual Studios?
    Saturday, January 09, 2016 3:10 PM
  • Please do not try to post your own question in someone else's thread. Post your own question in the Visual C++ forums.  This forum is for C# questions only.
    Saturday, January 09, 2016 5:17 PM
    Moderator
  • using System;
    using Microsoft.MetadirectoryServices;
    
    namespace Mms_Metaverse
    {
    /// <summary>
    /// Summary description for MVExtensionObject.
    /// </summary>
        public class MVExtensionObject : IMVSynchronization
        {
            public MVExtensionObject()
            {
                //
                // TODO: Add constructor logic here
                //
            }
    
            void IMVSynchronization.Initialize ()
            {
                //
                // TODO: Add initialization logic here
                //
            }
    
            void IMVSynchronization.Terminate ()
            {
                //
                // TODO: Add termination logic here
                //
            }
    
            void IMVSynchronization.Provision (MVEntry mventry)
            {
                ConnectedMA ManagementAgent;
                int Connectors = 0;
                CSEntry csentry;
                ReferenceValue DN;
    
                ManagementAgent = mventry.ConnectedMAs["ImportTest"];
                Connectors = ManagementAgent.Connectors.Count;
                
    
                if (0 == Connectors)
                {
                    csentry = ManagementAgent.Connectors.StartNewConnector("Person");
                    csentry["anchor-attribute"].Value = mventry["employeeID"].Value;
                    csentry["objectclass"].Value = "Person";
                    csentry["delta"].Value = "Add";
                    csentry.CommitNewConnector();
                }
    
                if (1 == Connectors)
                {
                }
    
                ManagementAgent = mventry.ConnectedMAs["AD"];
                Connectors = ManagementAgent.Connectors.Count;
                
    
                if (0 == Connectors)
                {
                    DN = ManagementAgent.EscapeDNComponent("CN=" + mventry["accountName"].Value).Concat("OU=ECMA2,DC=corp,DC=contoso,DC=com");
                    csentry = ManagementAgent.Connectors.StartNewConnector("user");
                    csentry.DN = DN;
                    csentry["samAccountName"].Value = mventry["accountName"].Value;
                    csentry.CommitNewConnector();
                }
    
                if (1 == Connectors)
                {
                }
    
            }
    
            bool IMVSynchronization.ShouldDeleteFromMV (CSEntry csentry, MVEntry mventry)
            {
                //
                // TODO: Add MV deletion logic here
                //
                throw new EntryPointNotImplementedException();
            }
        }
    }
    

    Please convert .dll and send back to me.

    Friday, April 07, 2017 6:08 PM
  • This thread is 5 years old. Please post your question in a new thread.

    Also, we cannot convert this to a DLL for you. We cannot upload files to begin with and the code you have you should be able to drop into a class library, add the appropriate assembly reference to whatever that MS assembly you're referencing and compile it yourself. We cannot help with that.

    I'm locking this thread so no further OT posts will be added to it.

    Friday, April 07, 2017 6:22 PM
    Moderator