Click here to Skip to main content
15,903,856 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: communication from library to application Pin
Richard MacCutchan22-Mar-24 22:57
mveRichard MacCutchan22-Mar-24 22:57 
GeneralRe: communication from library to application Pin
utcode24-Mar-24 12:31
utcode24-Mar-24 12:31 
GeneralRe: communication from library to application Pin
Dave Kreskowiak24-Mar-24 15:29
mveDave Kreskowiak24-Mar-24 15:29 
GeneralRe: communication from library to application Pin
Richard MacCutchan24-Mar-24 22:26
mveRichard MacCutchan24-Mar-24 22:26 
QuestionWhats reason of error: LNK2019 unresolved external symbol "__declspec(dllimport) public: __cdecl NS::A::A Pin
Oscar K.16-Mar-24 19:58
Oscar K.16-Mar-24 19:58 
AnswerRe: Whats reason of error: LNK2019 unresolved external symbol "__declspec(dllimport) public: __cdecl NS::A::A Pin
Richard MacCutchan16-Mar-24 22:50
mveRichard MacCutchan16-Mar-24 22:50 
GeneralRe: Whats reason of error: LNK2019 unresolved external symbol "__declspec(dllimport) public: __cdecl NS::A::A Pin
Oscar K.17-Mar-24 2:53
Oscar K.17-Mar-24 2:53 
GeneralRe: Whats reason of error: LNK2019 unresolved external symbol "__declspec(dllimport) public: __cdecl NS::A::A Pin
Richard MacCutchan17-Mar-24 3:28
mveRichard MacCutchan17-Mar-24 3:28 
Oscar K. wrote:
#define MYDLL_EXPORTS in MyDll.cpp invokes macro redefinition
You should only have it in one place, and inside the dll implementation file (MyDll.cpp) is the better choice.

Oscar K. wrote:
extern PrintDelegate printDlgt in MyDll.h is usual decision, that's how it's done
Correct, but that only makes it visible to the build of the DLL. When you build your test code the it is declared extern which the compiler accepts as it should be defined in another compilation unit, as part of the build of the main program. But when you try to link the program the linker cannot find where that item is actually defined because it only exists in the DLL. And since it has not been exported it is not listed in the lib or exp files.
GeneralRe: Whats reason of error: LNK2019 unresolved external symbol "__declspec(dllimport) public: __cdecl NS::A::A Pin
Oscar K.17-Mar-24 5:45
Oscar K.17-Mar-24 5:45 
GeneralRe: Whats reason of error: LNK2019 unresolved external symbol "__declspec(dllimport) public: __cdecl NS::A::A Pin
Richard MacCutchan17-Mar-24 6:56
mveRichard MacCutchan17-Mar-24 6:56 
GeneralRe: Whats reason of error: LNK2019 unresolved external symbol "__declspec(dllimport) public: __cdecl NS::A::A Pin
Oscar K.17-Mar-24 23:36
Oscar K.17-Mar-24 23:36 
QuestionZonal Id Pin
john563214-Mar-24 0:51
john563214-Mar-24 0:51 
QuestionRe: Zonal Id Pin
CPallini14-Mar-24 2:09
mveCPallini14-Mar-24 2:09 
AnswerRe: Zonal Id Pin
john563214-Mar-24 2:52
john563214-Mar-24 2:52 
GeneralRe: Zonal Id Pin
CPallini14-Mar-24 3:08
mveCPallini14-Mar-24 3:08 
Questionjava Pin
Aryan Gupta 202413-Mar-24 11:20
Aryan Gupta 202413-Mar-24 11:20 
AnswerRe: java Pin
jeron113-Mar-24 11:26
jeron113-Mar-24 11:26 
AnswerRe: java Pin
CPallini13-Mar-24 21:44
mveCPallini13-Mar-24 21:44 
GeneralRe: java Pin
Aryan Gupta 202415-Mar-24 10:10
Aryan Gupta 202415-Mar-24 10:10 
GeneralRe: java Pin
CPallini16-Mar-24 1:44
mveCPallini16-Mar-24 1:44 
QuestionMy Visual Studio windows are all misplaced. Pin
Maximilien13-Mar-24 3:11
Maximilien13-Mar-24 3:11 
AnswerRe: My Visual Studio windows are all misplaced. Pin
Richard Andrew x6413-Mar-24 12:34
professionalRichard Andrew x6413-Mar-24 12:34 
GeneralRe: My Visual Studio windows are all misplaced. Pin
Maximilien14-Mar-24 2:44
Maximilien14-Mar-24 2:44 
GeneralRe: My Visual Studio windows are all misplaced. Pin
Richard Andrew x6414-Mar-24 2:52
professionalRichard Andrew x6414-Mar-24 2:52 
GeneralRe: My Visual Studio windows are all misplaced. Pin
RedDk16-Mar-24 11:21
RedDk16-Mar-24 11:21 

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.