Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: urgent question Pin
MAHMOUD ALI Jun20215-Jun-21 1:37
MAHMOUD ALI Jun20215-Jun-21 1:37 
GeneralRe: urgent question Pin
Victor Nijegorodov5-Jun-21 1:41
Victor Nijegorodov5-Jun-21 1:41 
AnswerRe: urgent question Pin
Richard MacCutchan5-Jun-21 2:20
mveRichard MacCutchan5-Jun-21 2:20 
AnswerRe: urgent question Pin
David Crow5-Jun-21 4:03
David Crow5-Jun-21 4:03 
AnswerRe: urgent question Pin
Dave Kreskowiak5-Jun-21 4:22
mveDave Kreskowiak5-Jun-21 4:22 
AnswerRe: urgent question Pin
enhzflep10-Jun-21 21:13
enhzflep10-Jun-21 21:13 
AnswerRe: urgent question Pin
SeeSharp211-Jun-21 1:23
SeeSharp211-Jun-21 1:23 
QuestionC++/MFC Parameterizing a Recordset (ODBC), having problem with passing UNICODE parameter Value Pin
Zouaoui Billel31-May-21 8:05
Zouaoui Billel31-May-21 8:05 
AnswerRe: C++/MFC Parameterizing a Recordset (ODBC), having problem with passing UNICODE parameter Value Pin
Richard MacCutchan31-May-21 9:11
mveRichard MacCutchan31-May-21 9:11 
AnswerRe: C++/MFC Parameterizing a Recordset (ODBC), having problem with passing UNICODE parameter Value Pin
Dave Kreskowiak31-May-21 11:51
mveDave Kreskowiak31-May-21 11:51 
QuestionMessage Closed Pin
27-May-21 11:04
Member 1496877127-May-21 11:04 
AnswerRe: terminology refresher class ?? Pin
Mircea Neacsu27-May-21 15:24
Mircea Neacsu27-May-21 15:24 
GeneralMessage Closed Pin
28-May-21 5:36
Member 1496877128-May-21 5:36 
GeneralRe: terminology refresher class ?? Pin
Mircea Neacsu28-May-21 9:24
Mircea Neacsu28-May-21 9:24 
GeneralMessage Closed Pin
29-May-21 5:42
Member 1496877129-May-21 5:42 
GeneralRe: terminology refresher class ?? Pin
Richard MacCutchan29-May-21 5:53
mveRichard MacCutchan29-May-21 5:53 
AnswerRe: terminology refresher class ?? Pin
Richard MacCutchan27-May-21 21:26
mveRichard MacCutchan27-May-21 21:26 
The source code may be using definitions of classes/functions etc in an external library. The header file provides this information so the compiler can create a reference in the object code. Such references will then be used by the linker to fix the links to a library or other object code module. For example given the followin directory structure:
PROJECT
    LIB
    CLIENT

you might have:
C++
// Library.h the defintions of the library, in the LIB subdirectory
void Foo(char* name);

// Library.c the implementation of the library, in the LIB subdirectory
void Foo(char* name)
{
    printf("Hello, World! A message from %s\n", name);
}

//Implementor.cpp the program that will use the library, in the CLIENT subdirectory
#include "../LIB/Library.h"
int main(int argc, char** argv)
{
    Foo("fred");

    return 0;
}

Does that make sense?
GeneralMessage Closed Pin
28-May-21 5:32
Member 1496877128-May-21 5:32 
GeneralRe: terminology refresher class ?? Pin
Richard MacCutchan28-May-21 5:47
mveRichard MacCutchan28-May-21 5:47 
QuestionMessage Closed Pin
26-May-21 15:22
Member 1496877126-May-21 15:22 
AnswerRe: How to find include directive path? Pin
Richard MacCutchan26-May-21 21:11
mveRichard MacCutchan26-May-21 21:11 
GeneralMessage Closed Pin
27-May-21 11:29
Member 1496877127-May-21 11:29 
GeneralRe: How to find include directive path? Pin
Richard MacCutchan27-May-21 21:13
mveRichard MacCutchan27-May-21 21:13 
GeneralMessage Closed Pin
28-May-21 5:42
Member 1496877128-May-21 5:42 
GeneralRe: How to find include directive path? Pin
Richard MacCutchan28-May-21 5:49
mveRichard MacCutchan28-May-21 5: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.