Results 1 to 3 of 3

Thread: [2.0] Embed Dll or Dll source into EXE

  1. #1

    Thread Starter
    Member MasterEvilAce's Avatar
    Join Date
    Jul 2002
    Posts
    60

    [2.0] Embed Dll or Dll source into EXE

    I'm wondering if it's possible to embed a DLL, or the DLL source (project file) into another program's EXE?

    I'm making an auto-updator, and I am using an open-source DLL for FTP connections, and I'm wanting to embed it into my auto-updater EXE, so there's only one file.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] Embed Dll or Dll source into EXE

    An executable file must be on disc to be executed. That means that you can embed the library or its source in your EXE, but you'll have to extract it and save it to disc to be able to use it. That would mean compiling it if you use the source. If it's open source then you may be able to actually use the source code in your own project, providing you give proper credit. That depends on the license though. Do the .NET FTP classes not do what you need?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member MasterEvilAce's Avatar
    Join Date
    Jul 2002
    Posts
    60

    Re: [2.0] Embed Dll or Dll source into EXE

    I wasn't aware any FTP stuff is in the .Net framework. That's cool.

    But my friend was using the open-source edtFTPnet stuff, so it's what I used, because it's very quick and easy.

    My project is finished, and I'd just like to get it down to one file. I don't mind if the dll gets extracted when I run the EXE, given that it's going to download a whole bunch of other files at the same time.

    how would i go about doing that?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width