Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DirectX lib file question Pin
followait7-Aug-08 19:53
followait7-Aug-08 19:53 
GeneralRe: DirectX lib file question Pin
Mark Salsbery8-Aug-08 3:50
Mark Salsbery8-Aug-08 3:50 
GeneralRe: DirectX lib file question Pin
followait8-Aug-08 20:54
followait8-Aug-08 20:54 
QuestionClass definition issue Pin
Patrick G7-Aug-08 4:57
Patrick G7-Aug-08 4:57 
AnswerRe: Class definition issue Pin
Cedric Moonen7-Aug-08 5:04
Cedric Moonen7-Aug-08 5:04 
GeneralRe: Class definition issue Pin
Patrick G7-Aug-08 5:33
Patrick G7-Aug-08 5:33 
QuestionCalling exported functions from a static DLL Pin
Yashusid7-Aug-08 4:01
Yashusid7-Aug-08 4:01 
AnswerRe: Calling exported functions from a static DLL Pin
Matthew Faithfull7-Aug-08 4:18
Matthew Faithfull7-Aug-08 4:18 
I think you may have your terms a little confused so I'm not exactly sure what you want.
There are basically three scenarios:

1. x.dll is a Dll and is used by calling LoadLibrary and GetProcAddress

2. x.dll is a Dll, x.lib is its import library. x.lib is linked into application y which is then implicitly linked to x.dll. x.dll get loaded by y.exe during the bootstrap phase and functions in x.dll can be called directly from y.exe code, No LoadLibrary, no GetProcAddress

3. x.lib is a static library which is linked as part of y.exe. The two are merged at compile time to produce y.exe. That's it, the functions all act as if they are in the same module because they are, no LoadLibrary, no GetProcAddress

Generally you'd use:
1 if the code in x.dll is shared and only used occassionaly by y.exe
2 if the code in x.dll is shared and used all the time by y.exe
3 if x.lib is really just a subdivision of y.exe and is not used by other applications.

I hope this helps. Smile | :)

"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

GeneralRe: Calling exported functions from a static DLL Pin
Yashusid7-Aug-08 4:40
Yashusid7-Aug-08 4:40 
GeneralRe: Calling exported functions from a static DLL Pin
led mike7-Aug-08 4:44
led mike7-Aug-08 4:44 
GeneralRe: Calling exported functions from a static DLL Pin
Matthew Faithfull7-Aug-08 4:53
Matthew Faithfull7-Aug-08 4:53 
GeneralRe: Calling exported functions from a static DLL Pin
Yashusid7-Aug-08 5:15
Yashusid7-Aug-08 5:15 
GeneralRe: Calling exported functions from a static DLL Pin
Matthew Faithfull7-Aug-08 5:29
Matthew Faithfull7-Aug-08 5:29 
GeneralRe: Calling exported functions from a static DLL Pin
Yashusid8-Aug-08 0:59
Yashusid8-Aug-08 0:59 
AnswerRe: Calling exported functions from a static DLL Pin
Cedric Moonen7-Aug-08 4:23
Cedric Moonen7-Aug-08 4:23 
AnswerRe: Calling exported functions from a static DLL Pin
toxcct7-Aug-08 4:25
toxcct7-Aug-08 4:25 
QuestionAre THE MFC FTP classes limited to 32bit file sizes? Pin
Paul Deckers7-Aug-08 3:48
Paul Deckers7-Aug-08 3:48 
AnswerRe: Are THE MFC FTP classes limited to 32bit file sizes? Pin
led mike7-Aug-08 4:41
led mike7-Aug-08 4:41 
QuestionPassing string array as pointer Pin
__DanC__7-Aug-08 3:47
__DanC__7-Aug-08 3:47 
AnswerRe: Passing string array as pointer Pin
David Crow7-Aug-08 4:01
David Crow7-Aug-08 4:01 
GeneralRe: Passing string array as pointer Pin
__DanC__7-Aug-08 4:11
__DanC__7-Aug-08 4:11 
GeneralRe: Passing string array as pointer Pin
David Crow7-Aug-08 4:19
David Crow7-Aug-08 4:19 
GeneralRe: Passing string array as pointer Pin
__DanC__7-Aug-08 4:22
__DanC__7-Aug-08 4:22 
GeneralRe: Passing string array as pointer Pin
David Crow7-Aug-08 4:55
David Crow7-Aug-08 4:55 
QuestionRe: Passing string array as pointer Pin
Matthew Faithfull7-Aug-08 4:09
Matthew Faithfull7-Aug-08 4:09 

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.