|
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
|
|
|
|
|
Thanks Judy,
I want to confirm that, if I understand your points correctly, .DEF file is used to manage (or I should use the word *impact*) the import library file (.lib), and the other components which is dependent on the DLL should use import library file (.lib) directly other than use .DEF file. Right?
regards,
George
|
|
|
|
|
George_George wrote: I want to confirm that, if I understand your points correctly, .DEF file is used to manage (or I should use the word *impact*) the import library file (.lib), and the other components which is dependent on the DLL should use import library file (.lib) directly other than use .DEF file. Right?
Yes
|
|
|
|
|
Thanks for your confirmation, JudyL_FL!
regards,
George
|
|
|
|
|
Hi all,
I want my mainframe to open in the maximized view defaultly,now i'm using the maximize button to do that,can anybody plz help in this.
Regards..
saravana...
|
|
|
|
|
On the last lines of CMyApp::InitInstance ()
if (!ProcessShellCommand(cmdInfo))
return FALSE;
pMainFrame->ShowWindow(m_nCmdShow | SW_SHOWMAXIMIZED );
pMainFrame->UpdateWindow();
return TRUE;
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
thanq nelek..,it is working..plz help mi how to get my child window maximised..
thanks in advance
saravana...
|
|
|
|
|
The principle is the same, but you should place it in CChildFrm::PreCreateWindow (...)
take a look into the info of CREATESTRUCT , specially to the cs.style parameter/flag
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Looking for ways to generate PDF file in VC++/MFC.
I have found some paid libraries. Is there any other ways or some open sources?
Thank you.
|
|
|
|
|
Haru[^]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->ßRÅhmmÃ<-·´¯`·.
|
|
|
|
|
Thanks.
I'm using google as well but I need to find quick solution so I wanted some good suggestions from nice members like you.
|
|
|
|
|
c07 wrote: I'm using google as well but I need to find quick solution so I wanted some good suggestions
In that case, google for iTextSharp, which I found to be good. But it is to be used only with managed code.
Real men drive manual transmission.
|
|
|
|
|
thanks again..Do you have experience with Acrobat SDK?
|
|
|
|
|
No, I have not worked on Acrobat SDK.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->ßRÅhmmÃ<-·´¯`·.
|
|
|
|
|
c07 wrote: Is there any other ways or some open sources?
Try here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I have a BYTE pointer it contains the values that i have read from a jpeg file. how can i convert it in to a BYTE pointer of grayscale image.
Thanks in advance
-- modified at 3:39 Friday 2nd November, 2007
|
|
|
|
|
Take a look in the forum using search. There is a formule to convert RGB into grayscale. Take the value of the RGB byte, use the formule and send it to your grayscale one.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Gray = (R + G + B) / 3
or
Gray = Luminance = .299 * R + .587 * G + .114 * B
|
|
|
|
|
Can anyone tell me Advantage of vc++ over dotnet and vb
S.Yamini
|
|
|
|
|
I dont have used dotnet yet, but I prefer VC++ to VB because in VC++ you can be "more or less" sure about what you are programming. VB is "easy" to code, but the final result has differences with the start code because of the translations of compiler (at last... the VB compiler translates to make the code understandable for the mashine)
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Is it only the complier is advantage in vc++
S.Yamini
|
|
|
|
|
????
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
VC++ produces native code.
every .NET languages generate MSIL, which targets only the .NET framework, such as Java does with its byte Code and JRE...
|
|
|
|
|
|
he never gone far, but he has work to do !
|
|
|
|