Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Displaying Message Box while program(code) continues Pin
toxcct31-May-06 0:17
toxcct31-May-06 0:17 
GeneralRe: Displaying Message Box while program(code) continues Pin
ThatsAlok31-May-06 0:42
ThatsAlok31-May-06 0:42 
GeneralRe: Displaying Message Box while program(code) continues Pin
toxcct31-May-06 0:58
toxcct31-May-06 0:58 
GeneralRe: Displaying Message Box while program(code) continues Pin
ThatsAlok31-May-06 1:54
ThatsAlok31-May-06 1:54 
QuestionBitmap Planes Pin
Sarath C30-May-06 20:41
Sarath C30-May-06 20:41 
AnswerRe: Bitmap Planes Pin
Steve Echols30-May-06 21:57
Steve Echols30-May-06 21:57 
GeneralRe: Bitmap Planes Pin
NiceNaidu30-May-06 22:52
NiceNaidu30-May-06 22:52 
Question.obj, .lib and .dll? Pin
Polite Programmer30-May-06 20:40
Polite Programmer30-May-06 20:40 
Being a begginer, I have many problems...
Consider this situation

Suppose I am building a usefull library. One way is that I distribute it along with all the source and all the header files.... Right? Client programer will include the main header and will start using the functionality present in the library.

Other scenario, what if I only give him the header files along with lib files? How I can do that? Means what compiler options I will have to set? (Assuming I am using VC.NET 2003)

Lastly, I present here a realife example that somewhat confused me... Its the FreeType Library which is a true type rasterizer. http://www.freetype.org

There are two distributions, one is the source of the library, and the other is library in usable form.

I set my include paths as indicated by the documentation of FreeType. When I compile, I get "Uresovled symbols in function _tmain()". Ok, I figure out that either I have to provide the linker with the .lib file. Ok, I do so... All very well... Program complies and executes but terminates... It says "Cannot load library freetype6.dll".
At the next step I find the .dll library and place it in the current directory of the program. Now I compile, and execute... all very well... Program is running...
My question is that when I provided it with .lib file, FreeType library should be statically linked to my program why it requires the .dll to be accessible for the EXE?

Please explain me what are .obj and .lib and .dll files are and what is there relation to each other and how they fit togather?
Morevoer, if there is any article, book or tutorial on these issues, please let me know...

If anything seems to you stupid, please dont mind as I am a begginer...

Best regards,
Mohsin Hijazee



Polite Programmer


More Object Oriented then C#
AnswerRe: .obj, .lib and .dll? Pin
Cedric Moonen30-May-06 21:03
Cedric Moonen30-May-06 21:03 
GeneralRe: .obj, .lib and .dll? Pin
NiceNaidu30-May-06 21:19
NiceNaidu30-May-06 21:19 
GeneralRe: .obj, .lib and .dll? Pin
Polite Programmer31-May-06 19:15
Polite Programmer31-May-06 19:15 
QuestionOptional arguments Pin
SWDevil30-May-06 20:39
SWDevil30-May-06 20:39 
AnswerRe: Optional arguments Pin
Nibu babu thomas30-May-06 20:48
Nibu babu thomas30-May-06 20:48 
AnswerRe: Optional arguments Pin
_anil_30-May-06 21:00
_anil_30-May-06 21:00 
GeneralRe: Optional arguments Pin
SWDevil30-May-06 21:16
SWDevil30-May-06 21:16 
GeneralRe: Optional arguments Pin
Cedric Moonen30-May-06 21:18
Cedric Moonen30-May-06 21:18 
GeneralRe: Optional arguments Pin
Owner drawn30-May-06 21:25
Owner drawn30-May-06 21:25 
GeneralRe: Optional arguments Pin
ThatsAlok30-May-06 23:59
ThatsAlok30-May-06 23:59 
GeneralRe: Optional arguments Pin
Rajesh R Subramanian9-Oct-06 21:54
professionalRajesh R Subramanian9-Oct-06 21:54 
GeneralRe: Optional arguments Pin
Owner drawn16-Oct-06 19:25
Owner drawn16-Oct-06 19:25 
GeneralRe: Optional arguments Pin
_anil_30-May-06 21:29
_anil_30-May-06 21:29 
AnswerRe: Optional arguments Pin
toxcct30-May-06 21:46
toxcct30-May-06 21:46 
GeneralRe: Optional arguments Pin
SWDevil30-May-06 21:59
SWDevil30-May-06 21:59 
GeneralRe: Optional arguments Pin
toxcct30-May-06 22:04
toxcct30-May-06 22:04 
GeneralRe: Optional arguments Pin
ThatsAlok31-May-06 17:50
ThatsAlok31-May-06 17:50 

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.