Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCEdit Validation Pin
ddmcr8-May-05 6:39
ddmcr8-May-05 6:39 
GeneralRe: CEdit Validation Pin
Jack Puppy8-May-05 7:50
Jack Puppy8-May-05 7:50 
GeneralRe: CEdit Validation Pin
Anonymous16-May-05 2:15
Anonymous16-May-05 2:15 
GeneralDisplay data in pages Pin
Ivan Cachicatari8-May-05 5:31
Ivan Cachicatari8-May-05 5:31 
GeneralRe: Display data in pages Pin
Chris Losinger8-May-05 6:24
professionalChris Losinger8-May-05 6:24 
GeneralRe: Display data in pages Pin
Ivan Cachicatari8-May-05 8:35
Ivan Cachicatari8-May-05 8:35 
GeneralRe: Display data in pages Pin
Chris Losinger8-May-05 8:47
professionalChris Losinger8-May-05 8:47 
Generallibrary linking error Pin
8-May-05 3:18
suss8-May-05 3:18 
i had made the win32 static library in vc6 and code is given both decleration and implemention are

class CKeyLogger : public CObject
{
public:
CKeyLogger();
virtual ~CKeyLogger();
void KeyLoggerMain();

CKeyLogger::CKeyLogger()
{

}

CKeyLogger::~CKeyLogger()
{

}
void CKeyLogger::KeyLoggerMain()
{
MessageBox("library is called");
}

i made the new MFC application class that includes this as below.

#include "..\\KeyLoggerLibrary\\KeyLogger.h"
and in one of its function in this calss i used the code below.

CKeyLogger obj1;
obj.KeyLoggerMain();

it gives no compiler errors but gives the linking error described below.

error LNK2001: unresolved external symbol "public: virtual __thiscall CKeyLogger::~CKeyLogger(void)" (??1CKeyLogger@@UAE@XZ)
file2.obj : error LNK2001: unresolved external symbol "public: __thiscall CKeyLogger::CKeyLogger(void)" (??0CKeyLogger@@QAE@XZ)
file2.obj : error LNK2001: unresolved external symbol "public: void __thiscall CKeyLogger::KeyLoggerMain(void)" (?KeyLoggerMain@CKeyLogger@@QAEXXZ)
Debug/CH3.exe : fatal error LNK1120: 3 unres

can anybody tell me what to do,

ddd
GeneralRe: library linking error Pin
Jörgen Sigvardsson8-May-05 3:43
Jörgen Sigvardsson8-May-05 3:43 
GeneralRe: library linking error2 Pin
_tasleem8-May-05 9:22
_tasleem8-May-05 9:22 
GeneralRe: library linking error2 Pin
Jörgen Sigvardsson8-May-05 9:37
Jörgen Sigvardsson8-May-05 9:37 
GeneralRe: library linking error2 Pin
_tasleem8-May-05 9:56
_tasleem8-May-05 9:56 
GeneralRe: library linking error2 Pin
Blake Miller9-May-05 5:55
Blake Miller9-May-05 5:55 
GeneralRe: library linking error2 Pin
_tasleem12-May-05 13:02
_tasleem12-May-05 13:02 
GeneralRe: library linking error2 Pin
Blake Miller12-May-05 14:30
Blake Miller12-May-05 14:30 
GeneralRe: library linking error2 Pin
_tasleem13-May-05 3:47
_tasleem13-May-05 3:47 
QuestionHow can I set the focus to an specific item? Pin
pantao5518-May-05 2:35
pantao5518-May-05 2:35 
AnswerRe: How can I set the focus to an specific item? Pin
Gary R. Wheeler8-May-05 3:58
Gary R. Wheeler8-May-05 3:58 
GeneralRe: How can I set the focus to an specific item? Pin
pantao5518-May-05 4:51
pantao5518-May-05 4:51 
GeneralRe: How can I set the focus to an specific item? Pin
Blake Miller9-May-05 5:58
Blake Miller9-May-05 5:58 
GeneralCheckBox in CDateTimeCtrl Pin
pollypunter7-May-05 23:00
pollypunter7-May-05 23:00 
GeneralRe: CheckBox in CDateTimeCtrl Pin
anand_study17-May-05 19:39
anand_study17-May-05 19:39 
GeneralSTL problems using MFC Pin
eli150219797-May-05 22:01
eli150219797-May-05 22:01 
GeneralRe: STL problems using MFC Pin
Bob Stanneveld8-May-05 4:23
Bob Stanneveld8-May-05 4:23 
GeneralHelp needed Pin
mfedit7-May-05 20:41
mfedit7-May-05 20:41 

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.