Click here to Skip to main content
15,897,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Create a Connection with Phone serail COM Port ? [modified] Pin
Hristo-Bojilov6-Feb-10 10:39
Hristo-Bojilov6-Feb-10 10:39 
AnswerRe: How to Create a Connection with Phone serail COM Port ? Pin
Richard MacCutchan6-Feb-10 21:46
mveRichard MacCutchan6-Feb-10 21:46 
QuestionDifferent outputs in vc6 & vs2008 with same code(typecasting). Help Pin
Priya_Sundar6-Feb-10 7:05
Priya_Sundar6-Feb-10 7:05 
AnswerRe: Different outputs in vc6 & vs2008 with same code(typecasting). Help Pin
David Crow6-Feb-10 13:34
David Crow6-Feb-10 13:34 
GeneralRe: Different outputs in vc6 & vs2008 with same code(typecasting). Help Pin
Priya_Sundar6-Feb-10 23:36
Priya_Sundar6-Feb-10 23:36 
AnswerRe: Different outputs in vc6 & vs2008 with same code(typecasting). Help Pin
Priya_Sundar7-Feb-10 18:59
Priya_Sundar7-Feb-10 18:59 
AnswerRe: Different outputs in vc6 & vs2008 with same code(typecasting). Help Pin
Priya_Sundar8-Feb-10 0:34
Priya_Sundar8-Feb-10 0:34 
QuestionUI Thread ... ! Pin
Manmohan296-Feb-10 4:44
Manmohan296-Feb-10 4:44 
I'm getting this message when I build my project -

Linking...<br />
MyThread.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMyThread::MyMessageHandler(unsigned int,long)" (?MyMessageHandler@CMyThread@@QAEXIJ@Z)<br />
E:\Stuff\Manmohan\Visual C++\IPM\Debug\IPM.exe : fatal error LNK1120: 1 unresolved externals



My code is here :-

// stdafx.h
.
.
.
#define WM_MYMESSAGE (WM_USER+1)


---------------------------------------------

// MyThread.h
#pragma once



// CMyThread

class CMyThread : public CWinThread
{
	DECLARE_DYNCREATE(CMyThread)

//protected:
public:
	CMyThread();           // protected constructor used by dynamic creation
	virtual ~CMyThread();

public:
	afx_msg void MyMessageHandler(WPARAM, LPARAM);
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	
protected:
	DECLARE_MESSAGE_MAP()
};


-----------------------------------------

//MyThread.cpp
.
.
.
afx_msg void MyMessageHandler(WPARAM, LPARAM)
{

}

BEGIN_MESSAGE_MAP(CMyThread, CWinThread)
	ON_THREAD_MESSAGE(WM_MYMESSAGE, MyMessageHandler)
END_MESSAGE_MAP()


My project is MFC dialog based.
Future Lies in Present.
Manmohan Bishnoi

AnswerRe: UI Thread ... ! Pin
LunaticFringe6-Feb-10 4:49
LunaticFringe6-Feb-10 4:49 
GeneralRe: UI Thread ... ! Pin
Manmohan296-Feb-10 5:12
Manmohan296-Feb-10 5:12 
GeneralRe: UI Thread ... ! Pin
LunaticFringe6-Feb-10 5:26
LunaticFringe6-Feb-10 5:26 
AnswerRe: UI Thread ... ! Pin
Netman1167-Feb-10 2:34
Netman1167-Feb-10 2:34 
AnswerRe: UI Thread ... ! Pin
yindoor7-Feb-10 3:31
yindoor7-Feb-10 3:31 
Questionneed suggestions on how to read other people code. Pin
Josef Manurung5-Feb-10 22:01
Josef Manurung5-Feb-10 22:01 
AnswerRe: need suggestions on how to read other people code. Pin
Richard MacCutchan5-Feb-10 22:46
mveRichard MacCutchan5-Feb-10 22:46 
GeneralRe: need suggestions on how to read other people code. Pin
Josef Manurung5-Feb-10 23:43
Josef Manurung5-Feb-10 23:43 
GeneralRe: need suggestions on how to read other people code. Pin
LunaticFringe5-Feb-10 23:59
LunaticFringe5-Feb-10 23:59 
AnswerRe: need suggestions on how to read other people code. Pin
Gary R. Wheeler6-Feb-10 0:13
Gary R. Wheeler6-Feb-10 0:13 
AnswerRe: need suggestions on how to read other people code. Pin
Alan Balkany9-Feb-10 4:00
Alan Balkany9-Feb-10 4:00 
Questionit's so complex for me, i'm mad Pin
nenfa5-Feb-10 16:00
nenfa5-Feb-10 16:00 
AnswerRe: it's so complex for me, i'm mad Pin
Richard MacCutchan5-Feb-10 21:46
mveRichard MacCutchan5-Feb-10 21:46 
Questionwin32 timer Pin
zaftblitz5-Feb-10 15:39
zaftblitz5-Feb-10 15:39 
AnswerRe: win32 timer Pin
Richard MacCutchan5-Feb-10 21:43
mveRichard MacCutchan5-Feb-10 21:43 
AnswerRe: win32 timer Pin
Gary R. Wheeler6-Feb-10 0:15
Gary R. Wheeler6-Feb-10 0:15 
GeneralRe: win32 timer Pin
zaftblitz6-Feb-10 6:17
zaftblitz6-Feb-10 6:17 

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.