Computing.Net > Forums > Programming > File extentions

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

File extentions

Reply to Message Icon

Name: Sajid Mohammed
Date: September 3, 2002 at 22:55:07 Pacific
Comment:

Hi Everyone,
What are .ini & .dll files and when are they used. What is the format used to write .ini & .dll files
Sajid Mohammed ( sajleo@yahoo.com )



Sponsored Link
Ads by Google

Response Number 1
Name: sebastian
Date: September 4, 2002 at 00:08:26 Pacific
Reply:

An ini file is simply a file which holds startup configs for a program. It is just a plain old text file.

A dll is a pre-compiled object file. Basically, assume you had a program which used exactly 10 functions. Now if you ever decided to change the internals of one of those functions, you would have to recompile the entire source-code, and erase the old exe, right? But if instead you placed each function in it's own dll, you would simply recompile the dll holding your target function, and delete the old dll. Thus, it is easier to make changes to a program with dll's. A dll can be compiled with most compilers these days.


0

Response Number 2
Name: setagllib@errokey
Date: September 10, 2002 at 01:14:54 Pacific
Reply:

It goes a little further than that...

The main purpose of a DLL (short for 'Dynamic Link Library') is to hold functions and variables that it exports for use by client applications (which import same, either explicitly/dynamically (using LoadLibrary() and GetProcAddress()) or implicitly (by declaring linkage and type data in headers).

The use of DLLs saves space for large modules (so that large amounts of code/data can be shared between applications) and to make updating easier (when you update the DLL, all the clients that use the changed components are updated).

It is a little confusing at first, and a bit pesky to use later, but is definitely worth it for large projects.

But, contrary to what sebastian said, it is immensely wrong to split an executable's functions into separate DLLs. It is monumentally easier to recompile the entire file, and is easier in terms of space and how many modules the OS has to handle at runtime.

Read MSDN for further information on the use of DLLs.

And on the topic of INIs... they have been made obsolete by Win32 registry management. INIs, although easier to find and edit by users, are more difficult to use because the OS leaves the file parsing to you (or a framework like MFC).


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: File extentions

rename file extentions www.computing.net/answers/programming/rename-file-extentions/15634.html

.ATT file extention www.computing.net/answers/programming/att-file-extention/176.html

Windows file extentions www.computing.net/answers/programming/windows-file-extentions/4351.html