Click here to Skip to main content
15,917,618 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Popup menu to an existing menu Pin
prithaa13-Jun-07 7:49
prithaa13-Jun-07 7:49 
GeneralRe: Popup menu to an existing menu Pin
Hamid_RT13-Jun-07 8:56
Hamid_RT13-Jun-07 8:56 
QuestionCWinThread problem!!! Pin
kcynic11-Jun-07 16:23
kcynic11-Jun-07 16:23 
AnswerRe: CWinThread problem!!! Pin
Arman S.11-Jun-07 19:40
Arman S.11-Jun-07 19:40 
Questionmain form instance name Pin
aaron_leese11-Jun-07 15:15
aaron_leese11-Jun-07 15:15 
AnswerRe: main form instance name Pin
David Crow11-Jun-07 15:51
David Crow11-Jun-07 15:51 
AnswerRe: main form instance name Pin
Hamid_RT11-Jun-07 20:03
Hamid_RT11-Jun-07 20:03 
QuestionC++ Linker Error (Unresolved External Symbol) [modified] Pin
Cyrilix11-Jun-07 10:39
Cyrilix11-Jun-07 10:39 
I get the following linker error:

error LNK2019: unresolved external symbol "__declspec(dllimport) public: ...


...with this code:

typedef int (MainWindow::*MainWindowPtr)(void);

CallbackWrapperSpecific<MainWindow, MainWindowPtr, int>* cbPtr = new CallbackWrapperSpecific<MainWindow, MainWindowPtr, int>(this, &MainWindow::DoWork);


I'm implementing an extended version of a functor (Link), and for some reason, I still get the linker error even though I'm exporting my symbols in the following header file:

#ifndef CALLBACKWRAPPER_H
#define CALLBACKWRAPPER_H

#ifdef _EXPORT
#define THREADAPI __declspec(dllexport)
#else
#define THREADAPI __declspec(dllimport)
#endif

template <class Type>
class THREADAPI CallbackWrapperBase
{
public:
	//Functions
	virtual Type Execute() = 0;
};

template <class ClassPtr, class Callback, class Type>
class THREADAPI CallbackWrapperSpecific : public CallbackWrapperBase<Type>
{
public:
	//Functions
	CallbackWrapperSpecific(ClassPtr* pClass, Callback pCallback);

	Type Execute();

	//Members
	ClassPtr* m_classPtr;
	Callback m_callbackPtr;
};

#endif


Anyone know why this still happens?


-- modified at 16:45 Monday 11th June, 2007
AnswerRe: C++ Linker Error (Unresolved External Symbol) Pin
rajandpayal11-Jun-07 10:44
rajandpayal11-Jun-07 10:44 
GeneralRe: C++ Linker Error (Unresolved External Symbol) Pin
Cyrilix11-Jun-07 10:53
Cyrilix11-Jun-07 10:53 
AnswerRe: C++ Linker Error (Unresolved External Symbol) Pin
Michael Dunn11-Jun-07 18:56
sitebuilderMichael Dunn11-Jun-07 18:56 
GeneralRe: C++ Linker Error (Unresolved External Symbol) Pin
Cyrilix12-Jun-07 3:04
Cyrilix12-Jun-07 3:04 
QuestionTermination of one dll from another Pin
rajandpayal11-Jun-07 10:24
rajandpayal11-Jun-07 10:24 
QuestionRe: Termination of one dll from another Pin
David Crow11-Jun-07 10:44
David Crow11-Jun-07 10:44 
AnswerRe: Termination of one dll from another Pin
rajandpayal11-Jun-07 10:46
rajandpayal11-Jun-07 10:46 
QuestionRe: Termination of one dll from another Pin
David Crow11-Jun-07 10:48
David Crow11-Jun-07 10:48 
AnswerRe: Termination of one dll from another Pin
rajandpayal11-Jun-07 10:52
rajandpayal11-Jun-07 10:52 
GeneralRe: Termination of one dll from another Pin
David Crow11-Jun-07 11:06
David Crow11-Jun-07 11:06 
GeneralRe: Termination of one dll from another Pin
rajandpayal11-Jun-07 11:13
rajandpayal11-Jun-07 11:13 
GeneralRe: Termination of one dll from another Pin
#realJSOP12-Jun-07 1:46
professional#realJSOP12-Jun-07 1:46 
Questionstrerror() for WSAGetLastError() and GetLastError() [modified] Pin
maizhiming11-Jun-07 10:15
maizhiming11-Jun-07 10:15 
AnswerRe: strerror() for WSAGetLastError() and GetLastError() Pin
David Crow11-Jun-07 10:45
David Crow11-Jun-07 10:45 
Questionproblem [modified] Pin
Force Code11-Jun-07 10:09
Force Code11-Jun-07 10:09 
AnswerRe: problem Pin
Matthew Faithfull11-Jun-07 11:00
Matthew Faithfull11-Jun-07 11:00 
Questionretrieve executable path by hwnd Pin
Giorgi Dalakishvili11-Jun-07 8:03
mentorGiorgi Dalakishvili11-Jun-07 8:03 

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.