Click here to Skip to main content
15,881,424 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralMessage Closed Pin
28-May-21 6:13
Member 1496877128-May-21 6:13 
GeneralRe: How to find include directive path? Pin
Richard MacCutchan28-May-21 6:37
mveRichard MacCutchan28-May-21 6:37 
GeneralMessage Closed Pin
28-May-21 7:20
Member 1496877128-May-21 7:20 
GeneralRe: How to find include directive path? Pin
Richard MacCutchan28-May-21 21:04
mveRichard MacCutchan28-May-21 21:04 
Questionc+ + coding Pin
javaid musa24-May-21 18:17
javaid musa24-May-21 18:17 
AnswerRe: c+ + coding Pin
CPallini24-May-21 20:00
mveCPallini24-May-21 20:00 
QuestionOptimizing this code ? Pin
Duc Axenn24-May-21 0:56
Duc Axenn24-May-21 0:56 
SuggestionRe: Optimizing this code ? Pin
Richard MacCutchan24-May-21 0:02
mveRichard MacCutchan24-May-21 0:02 
GeneralRe: Optimizing this code ? Pin
Duc Axenn24-May-21 0:56
Duc Axenn24-May-21 0:56 

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.