Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 27th, 2006, 9:32 AM   #1
NightShade01
Programmer
 
Join Date: Oct 2005
Posts: 52
Rep Power: 3 NightShade01 is on a distinguished road
using .dll's

Ok so i did some research on .dll's and i understand how they are integrated into programs. Question is though why use them? The one example i saw was making a button that exits the app in a user control. This was then saved as a .dll and then imported to the toolbox to be used anywhere on a different app. Why not just hard code a button instead of going through all that trouble? Or is there some other use here that i'm just missing.

something else i noticed too....this one program i have been studying saves all the information as it's own extension 'filename.gdy' how are they doing? Does it have something to do with saving the info as a .dll specific to that program?
NightShade01 is offline   Reply With Quote
Old Aug 27th, 2006, 9:48 AM   #2
rsnd
Hobbyist Programmer
 
rsnd's Avatar
 
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4 rsnd is on a distinguished road
You se them so that you dont have a 90 mojob mb file for a simple hello world application.
__________________
Spread your wings and fly! Chicken!
rsnd is offline   Reply With Quote
Old Aug 27th, 2006, 10:55 AM   #3
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 296
Rep Power: 4 Klarre is on a distinguished road
If you for example uses libraries that other people have developed, within your application you might want to link with their library dynamically (using dll) instead of statically (compile it in to your executable). Because if they bugfixes their library which you uses, you dont want to recompile your application every time they fix bugs. When using dll:s you only have to overwrite the old dll file with the new one.
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Old Aug 28th, 2006, 1:26 AM   #4
rsnd
Hobbyist Programmer
 
rsnd's Avatar
 
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4 rsnd is on a distinguished road
You also save memory. At any given time, there is only one one copy of a dll in a particular place that exists in your memory. Your O/S does some smart things with your processor to make it appear on the memory space of all programs. They are preffered because of the flexibility stuff Klaree stated above and also because after they are loaded...they are as fast as static librarys and function pointers.
__________________
Spread your wings and fly! Chicken!
rsnd is offline   Reply With Quote
Old Aug 28th, 2006, 6:50 AM   #5
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 417
Rep Power: 3 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
If I am not mistaken dll's are also often used for plugins.
__________________
JG-Webdesign
Wizard1988 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows .DLL's bmad6 Other Programming Languages 7 Nov 17th, 2005 11:43 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:16 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC