Click here to Skip to main content
16,011,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: module definition file Pin
JudyL_MD2-Nov-07 8:14
JudyL_MD2-Nov-07 8:14 
GeneralRe: module definition file Pin
George_George2-Nov-07 19:51
George_George2-Nov-07 19:51 
GeneralRe: module definition file Pin
JudyL_MD7-Nov-07 2:41
JudyL_MD7-Nov-07 2:41 
GeneralRe: module definition file Pin
George_George7-Nov-07 3:25
George_George7-Nov-07 3:25 
GeneralRe: module definition file Pin
George_George2-Nov-07 19:49
George_George2-Nov-07 19:49 
AnswerRe: module definition file Pin
JudyL_MD2-Nov-07 2:11
JudyL_MD2-Nov-07 2:11 
GeneralRe: module definition file Pin
George_George2-Nov-07 5:28
George_George2-Nov-07 5:28 
GeneralRe: module definition file Pin
JudyL_MD2-Nov-07 5:49
JudyL_MD2-Nov-07 5:49 
Note the DEF files are used by DLLs that expose a C interface.

George_George wrote:
In my understanding of your reply, you mean .DEF file is used for definition of what functions are exported by the DLL. I am wondering what is the differences between .DEF file and.lib file (import library), which is used to do implicit link when another component is dependent on the DLL?


The DEF file helps control what goes into the LIB file. A function will be listed as an exported function if a) the function has __declspec (dllexport) atrributes or b) the function name is in the DEF file. The LIB file is called an import library because it is given to users of a DLL to link with to resolve the references to functions in the DLL. The user "imports" the library functions into their code so they can link their executable. Use of an import library means that the user does not have to use LoadLibray and GetProcAddress to access the functions exported by the DLL.

George_George wrote:
BTW: could you show me a sample how other component will utilize the .DEF file of the DLL please?


Other components do not use the DEF file. It is used by the creator of the DLL to generate his DLL / LIB.

The package provided by a DLL provider should include a .h file, a .lib file and a .dll file. That's all that is required for anyone to use the dll. You actually don't need the .lib but it makes it easier for the users of the dll.

Judy
GeneralRe: module definition file Pin
George_George2-Nov-07 19:46
George_George2-Nov-07 19:46 
GeneralRe: module definition file Pin
JudyL_MD7-Nov-07 2:44
JudyL_MD7-Nov-07 2:44 
GeneralRe: module definition file Pin
George_George7-Nov-07 3:26
George_George7-Nov-07 3:26 
QuestionHow to open my Mainframe Pin
saravana0011-Nov-07 22:09
saravana0011-Nov-07 22:09 
AnswerRe: How to open my Mainframe Pin
Nelek1-Nov-07 22:30
protectorNelek1-Nov-07 22:30 
GeneralRe: How to open my Mainframe Pin
saravana0011-Nov-07 22:59
saravana0011-Nov-07 22:59 
GeneralRe: How to open my Mainframe Pin
Nelek1-Nov-07 23:48
protectorNelek1-Nov-07 23:48 
QuestionPDF creator Pin
c071-Nov-07 21:54
c071-Nov-07 21:54 
AnswerI wonder if you are "Googly challenged". Pin
Rajesh R Subramanian1-Nov-07 22:09
professionalRajesh R Subramanian1-Nov-07 22:09 
GeneralRe: I wonder if you are "Googly challenged". Pin
c071-Nov-07 22:29
c071-Nov-07 22:29 
GeneralRe: I wonder if you are "Googly challenged". Pin
Rajesh R Subramanian1-Nov-07 22:34
professionalRajesh R Subramanian1-Nov-07 22:34 
GeneralRe: I wonder if you are "Googly challenged". Pin
c071-Nov-07 23:03
c071-Nov-07 23:03 
GeneralRe: I wonder if you are "Googly challenged". Pin
Rajesh R Subramanian1-Nov-07 23:11
professionalRajesh R Subramanian1-Nov-07 23:11 
AnswerRe: PDF creator Pin
David Crow2-Nov-07 3:11
David Crow2-Nov-07 3:11 
QuestionJPEG to Grayscale conversion [modified] Pin
Rajish Sajayan1-Nov-07 21:34
Rajish Sajayan1-Nov-07 21:34 
AnswerRe: JPEG to Grayscale conversion Pin
Nelek1-Nov-07 22:29
protectorNelek1-Nov-07 22:29 
AnswerRe: JPEG to Grayscale conversion Pin
Chris Losinger2-Nov-07 2:29
professionalChris Losinger2-Nov-07 2:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.