Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Request for MAC/iPhone Message Borad. Pin
Eytukan3-Mar-09 20:08
Eytukan3-Mar-09 20:08 
GeneralRe: Request for MAC/iPhone Message Borad. Pin
Rahul Vaishnav3-Mar-09 20:15
Rahul Vaishnav3-Mar-09 20:15 
GeneralRe: Request for MAC/iPhone Message Borad. Pin
Eytukan3-Mar-09 20:24
Eytukan3-Mar-09 20:24 
GeneralRe: Request for MAC/iPhone Message Borad. Pin
Iain Clarke, Warrior Programmer3-Mar-09 22:21
Iain Clarke, Warrior Programmer3-Mar-09 22:21 
Questiondll creation in win32 Pin
hrishiS3-Mar-09 18:29
hrishiS3-Mar-09 18:29 
AnswerRe: dll creation in win32 Pin
_AnsHUMAN_ 3-Mar-09 18:47
_AnsHUMAN_ 3-Mar-09 18:47 
GeneralRe: dll creation in win32 Pin
hrishiS3-Mar-09 19:06
hrishiS3-Mar-09 19:06 
GeneralRe: dll creation in win32 * Pin
Eytukan3-Mar-09 19:44
Eytukan3-Mar-09 19:44 
himangshuS wrote:
Does statically link means always a Lib and dynamically linking means a dll?


A "lib" doesn't always hold the same meaning. When you are using a dll, a "lib" becomes dummy. It's just used to hold information about the dll when you compile. You put all your functionality into the dll. It holds the content for example an exported class or a group of functions. The lib holds all information. The linker looks for these information.

You can link to a dll both statically and dynamically. When you statically link it. (just like you link an MFC runtime) This gets added to your executable. You will not have a dependency but the executable size becomes bigger. When you link dynamically, the dll is kept independent and your exe uses it everytime and hence the advantage. Any number of exes can share the same dll.


himangshuS wrote:
Should Lib has to be used with dll in an application?

As I said, when you compile a code that uses a DLL, you'd require the libs. You don't even need your DLL when you compile. The LIB has all the information about the dll. The dll is required only at the run time.

Also, you can by pass the usage of libs if you are dynamically loading the dll using
LoadLibrary() & GetProcAddress calls. But you should know the type information in prior. For example the function signature.

Also occasionally you can build libs with brains- a static library. That's old an way though.

So I got your point. You are confused between libs,static library, dll & static linking. lol Smile | :)

He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus

GeneralRe: dll creation in win32 * Pin
hrishiS3-Mar-09 20:52
hrishiS3-Mar-09 20:52 
GeneralRe: dll creation in win32 * Pin
Eytukan3-Mar-09 20:57
Eytukan3-Mar-09 20:57 
GeneralRe: dll creation in win32 * [modified] Pin
hrishiS3-Mar-09 21:17
hrishiS3-Mar-09 21:17 
GeneralRe: dll creation in win32 * Pin
Eytukan3-Mar-09 22:01
Eytukan3-Mar-09 22:01 
GeneralRe: dll creation in win32 * Pin
hrishiS3-Mar-09 22:24
hrishiS3-Mar-09 22:24 
GeneralRe: dll creation in win32 * Pin
hrishiS3-Mar-09 22:26
hrishiS3-Mar-09 22:26 
GeneralRe: dll creation in win32 * Pin
Eytukan3-Mar-09 22:33
Eytukan3-Mar-09 22:33 
GeneralRe: dll creation in win32 * Pin
hrishiS3-Mar-09 22:38
hrishiS3-Mar-09 22:38 
GeneralRe: dll creation in win32 * Pin
Eytukan3-Mar-09 22:48
Eytukan3-Mar-09 22:48 
GeneralRe: dll creation in win32 * Pin
Eytukan3-Mar-09 22:36
Eytukan3-Mar-09 22:36 
GeneralRe: dll creation in win32 * Pin
hrishiS3-Mar-09 22:39
hrishiS3-Mar-09 22:39 
GeneralRe: dll creation in win32 * Pin
hrishiS3-Mar-09 23:20
hrishiS3-Mar-09 23:20 
GeneralRe: dll creation in win32 * Pin
Eytukan3-Mar-09 23:25
Eytukan3-Mar-09 23:25 
AnswerRe: dll creation in win32 Pin
Hamid_RT3-Mar-09 19:08
Hamid_RT3-Mar-09 19:08 
QuestionConvert 16bit grayscale bitmap to 8bit grayscale bitmap Pin
Akt_4_U3-Mar-09 18:12
Akt_4_U3-Mar-09 18:12 
QuestionWriting 8-bit grayscale bitmap data Pin
Member 21167363-Mar-09 17:36
Member 21167363-Mar-09 17:36 
AnswerRe: Writing 8-bit grayscale bitmap data Pin
Akt_4_U3-Mar-09 18:08
Akt_4_U3-Mar-09 18:08 

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.