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

  • Aphex
  • Born
  • Born
  • Aphex
  • Posts: 1

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Posts: 279
  • Loc: Buenos Aires, Argentina

Post 3+ Months Ago

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 85 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.