How would you import a .DLL file into a .EXE file?

  • Aphex
  • Born
  • Born
  • No Avatar
  • Joined: Apr 08, 2004
  • Posts: 1
  • Status: Offline

Post April 8th, 2004, 2:19 pm

How would you import a .DLL file into a .EXE file?

like when you disassemble a .EXE it says "Import Module 5: file.dll"

I want to have my .DLL listed in the .EXE so it executes when the .EXE is ran.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 8th, 2004, 2:19 pm

  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Joined: Feb 17, 2004
  • Posts: 279
  • Loc: Buenos Aires, Argentina
  • Status: Offline

Post April 8th, 2004, 4:19 pm

Well, a DLL file is executable code intended to be loaded on demand. Therefore, the way you must import a DLL depends on the language you are using to compile an EXE file.

In C/C++ you have two methods. The simplest:

Using LoadLibrary()/FreeLibrary()

But the best is having the include files along with the .LIB for the DLL you need. So, you can use this DLL functions as any other globaly declared function.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 184 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.