Click here to Skip to main content
15,918,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CoCreateInstance Pin
Dudi Avramov18-Dec-05 19:58
Dudi Avramov18-Dec-05 19:58 
AnswerRe: CoCreateInstance Pin
Blake Miller19-Dec-05 8:16
Blake Miller19-Dec-05 8:16 
QuestionMFC File IO to non-binary text file Pin
dodopendek17-Dec-05 4:29
dodopendek17-Dec-05 4:29 
AnswerRe: MFC File IO to non-binary text file Pin
T1TAN17-Dec-05 13:20
T1TAN17-Dec-05 13:20 
AnswerRe: MFC File IO to non-binary text file Pin
dodopendek17-Dec-05 15:39
dodopendek17-Dec-05 15:39 
QuestionProblem with CAsynchsoket in mfc Pin
selecta17-Dec-05 3:16
selecta17-Dec-05 3:16 
AnswerRe: Problem with CAsynchsoket in mfc Pin
kakan17-Dec-05 11:19
professionalkakan17-Dec-05 11:19 
Questionwhy LINK 2001 ? I set the complier use the '/GR' Pin
shanzy17-Dec-05 2:59
shanzy17-Dec-05 2:59 
#include <afxwin.h><br />
#include <typeinfo.h><br />
#include <iostream><br />
using namespace std;<br />
<br />
//////////////////////////////////////////////////////////////////////////<br />
class CAge: public CObject<br />
{<br />
public:				//note<br />
	int m_age;<br />
public:<br />
	CAge(int paraAge)<br />
	{<br />
		m_age = paraAge;<br />
	}<br />
	~CAge(){}<br />
public:<br />
	virtual void AssertValid() const;<br />
};<br />
<br />
//////////////////////////////////////////////////////////////////////////<br />
int main()<br />
{<br />
	// example for ASSERT<br />
	CAge* pcage = new CAge( 21 ); // CAge is derived from CObject.<br />
	ASSERT( pcage!= NULL );<br />
	ASSERT( pcage->IsKindOf( RUNTIME_CLASS( CObject ) ) );<br />
	// Terminates program only if pcage is NOT a CAge*.<br />
<br />
	cin.get();<br />
	return 0;<br />
}<br />
 <br />
<br />
shanzy<br />
<br />
 -- modified at 9:01 Saturday 17th December, 2005


And the compiler tell me:

error LNK2001: unresolved external symbol "public: virtual void __thiscall CAge::AssertValid(void)const " (?AssertValid@CAge@@UBEXXZ)

fatal error LNK1120: 1 unresolved externals
AnswerRe: why LINK 2001 ? I set the complier use the '/GR' Pin
Chris Losinger17-Dec-05 5:47
professionalChris Losinger17-Dec-05 5:47 
GeneralRe: why LINK 2001 ? I set the complier use the '/GR' Pin
shanzy18-Dec-05 15:24
shanzy18-Dec-05 15:24 
QuestionScroll bar Pin
sidniya17-Dec-05 2:12
sidniya17-Dec-05 2:12 
AnswerRe: Scroll bar Pin
Owner drawn1-Feb-06 19:04
Owner drawn1-Feb-06 19:04 
QuestionPreloaded symbols may not match Pin
emmatty17-Dec-05 2:10
emmatty17-Dec-05 2:10 
AnswerRe: Preloaded symbols may not match Pin
Udi Noach29-Dec-10 22:39
Udi Noach29-Dec-10 22:39 
Questionfile/io networking Pin
thes3cr3t116-Dec-05 23:52
thes3cr3t116-Dec-05 23:52 
QuestionA C++ Homework Pin
losan16-Dec-05 23:45
losan16-Dec-05 23:45 
AnswerRe: A C++ Homework Pin
ThatsAlok17-Dec-05 0:06
ThatsAlok17-Dec-05 0:06 
AnswerHow do I get other people to do my homework problem for me? Pin
Kevin McFarlane17-Dec-05 8:43
Kevin McFarlane17-Dec-05 8:43 
Questionchar to store &lt; 255 or use int Pin
oversight-[project-zero]16-Dec-05 21:47
oversight-[project-zero]16-Dec-05 21:47 
AnswerRe: char to store &amp;lt; 255 or use int Pin
tansey416-Dec-05 22:27
tansey416-Dec-05 22:27 
GeneralRe: char to store &amp;amp;lt; 255 or use int Pin
oversight-[project-zero]16-Dec-05 23:08
oversight-[project-zero]16-Dec-05 23:08 
GeneralRe: char to store &amp;amp;amp;lt; 255 or use int Pin
Gerben Jongerius16-Dec-05 23:49
Gerben Jongerius16-Dec-05 23:49 
GeneralRe: char to store &amp;amp;amp;amp;lt; 255 or use int Pin
oversight-[project-zero]17-Dec-05 0:00
oversight-[project-zero]17-Dec-05 0:00 
GeneralRe: char to store &amp;amp;amp;lt; 255 or use int Pin
tansey416-Dec-05 23:56
tansey416-Dec-05 23:56 
GeneralRe: char to store &amp;amp;amp;amp;lt; 255 or use int Pin
oversight-[project-zero]17-Dec-05 0:41
oversight-[project-zero]17-Dec-05 0: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.