• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

dll question

asad

Member
hi
i'm a beginner in c++
i would like to know about dll
what does it used for ?
dll and exe what is the difference between them?
thanks in advance
 
Quick Answer:

EXE = stand alone executable ( as long as you have the requireed libraries registered properly, you can run it)

DLL = Dynamic link library. Written for generic functions that you can use in multiple applications. It's for reusing code you've arleady written.

You have 3 apps you want to write. All of them access a database.

You could:
Write the front end for the three apps.
Write a back end DLL for database access and use that dll in all 3 applications.

 
A DLL provides a library of functions that a program can call, often a library that is shared by many different programs. A DLL also lets a company sell a code library without giving away the source code.

Google "what is a DLL" will tell you more. Google is your friend!
 
scince the dll i created will be only in my pc to invoke it when i need
so any file.exe i creat will not run exept in my pc.
 
Originally posted by: asad
scince the dll i created will be only in my pc to invoke it when i need
so any file.exe i creat will not run exept in my pc.

Yep...

But if u wanna port ur appl to different pcs, you can always include the dll in the application package 🙂
 
Originally posted by: asad
scince the dll i created will be only in my pc to invoke it when i need
so any file.exe i creat will not run exept in my pc.

That entirely depends. You said you invoke it when it's needed, so I'm assuming you're doing a LoadLibrary() instead of linking with the .lib of a DLL. In that case, the user can happily run your application up until they try to execute the code that does a LoadLibrary().
 
Back
Top