Click here to Skip to main content
15,891,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Non-Templatized methods in Template Class? Pin
bob169728-Feb-11 4:46
bob169728-Feb-11 4:46 
GeneralRe: Non-Templatized methods in Template Class? Pin
Stefan_Lang8-Feb-11 5:09
Stefan_Lang8-Feb-11 5:09 
AnswerRe: Non-Templatized methods in Template Class? Pin
CPallini7-Feb-11 22:13
mveCPallini7-Feb-11 22:13 
GeneralRe: Non-Templatized methods in Template Class? Pin
bob169728-Feb-11 4:42
bob169728-Feb-11 4:42 
QuestionC++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
DavJes7-Feb-11 1:47
DavJes7-Feb-11 1:47 
AnswerRe: C++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
Hans Dietrich7-Feb-11 2:07
mentorHans Dietrich7-Feb-11 2:07 
AnswerRe: C++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
CPallini7-Feb-11 3:00
mveCPallini7-Feb-11 3:00 
AnswerRe: C++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
Stefan_Lang8-Feb-11 1:36
Stefan_Lang8-Feb-11 1:36 
You repeatedly use the term 'refer', but didn't really clarify at which point you have trouble making the connection between your application and the DLL - it could be at compile time, at linking time, or at run time:

1. compiling

Any parts of the DLL that you are supposed to use from outside have to be declared in header files, using the 'extern' keyword. These header files then have to be included in the application that wants to use the DLL. This is neccessary for the compiler to understand the format of the function calls and the types of the parameters and return values.

2. linking

Once your application is successfully compiled, the linker will try to resolve the function calls into the DLL. This requires information about the already compiled DLL, which is contained in a file called '<dll-name>.lib'. You have to specify this Lib file (and possibly it's path) in the linker options. With the help of this Lib file, the linker will look up the offset of the function within the DLL and encode this into the function call.

3. running

At run-time your application will eventually call the LoadLibrary function that you specified. Provided the DLL can be found at the same location as your application is, or else, if you provided a path, at that path's location, the DLL will now be loaded into memory. When your code runs into a DLL function call, the system will use the linker-provided offset to invoke the correct function within the DLL.
Question"Could not find field 'Description'" error in access database. Pin
Le@rner7-Feb-11 1:21
Le@rner7-Feb-11 1:21 
AnswerRe: "Could not find field 'Description'" error in access database. Pin
David Crow7-Feb-11 8:47
David Crow7-Feb-11 8:47 
QuestionProblem using const float ** Pin
Alex80gbg6-Feb-11 22:41
Alex80gbg6-Feb-11 22:41 
AnswerRe: Problem using const float ** Pin
Stefan_Lang6-Feb-11 23:18
Stefan_Lang6-Feb-11 23:18 
AnswerRe: Problem using const float ** Pin
Andrew Brock6-Feb-11 23:41
Andrew Brock6-Feb-11 23:41 
QuestionDoModal [modified] Pin
john56326-Feb-11 20:16
john56326-Feb-11 20:16 
AnswerRe: DoModal Pin
Cedric Moonen6-Feb-11 21:30
Cedric Moonen6-Feb-11 21:30 
QuestionHow to provent text selection in CComboBox ? Pin
mesajflaviu6-Feb-11 20:01
mesajflaviu6-Feb-11 20:01 
AnswerRe: How to provent text selection in CComboBox ? Pin
mesajflaviu6-Feb-11 20:20
mesajflaviu6-Feb-11 20:20 
QuestionRe: How to provent text selection in CComboBox ? Pin
David Crow7-Feb-11 3:27
David Crow7-Feb-11 3:27 
AnswerRe: How to provent text selection in CComboBox ? Pin
mesajflaviu7-Feb-11 5:06
mesajflaviu7-Feb-11 5:06 
QuestionReading the file that create from "Print to file" option Pin
Max++6-Feb-11 16:09
Max++6-Feb-11 16:09 
AnswerRe: Reading the file that create from "Print to file" option Pin
Andrew Brock6-Feb-11 18:38
Andrew Brock6-Feb-11 18:38 
Questionhello, anyone have an idea of a code in MFC to shut down with time the pc ? in Vs 2008 ? Pin
leech4ever6-Feb-11 13:49
leech4ever6-Feb-11 13:49 
AnswerRe: hello, anyone have an idea of a code in MFC to shut down with time the pc ? in Vs 2008 ? Pin
«_Superman_»6-Feb-11 15:13
professional«_Superman_»6-Feb-11 15:13 
AnswerRe: hello, anyone have an idea of a code in MFC to shut down with time the pc ? in Vs 2008 ? Pin
Andrew Brock6-Feb-11 15:23
Andrew Brock6-Feb-11 15:23 
QuestionHow to make a book provision for multiple authors Pin
Horace Cheng6-Feb-11 11:49
Horace Cheng6-Feb-11 11:49 

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.