Click here to Skip to main content
15,911,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading .txt file using CFile Pin
Nicholas Cardi29-Sep-04 4:59
Nicholas Cardi29-Sep-04 4:59 
GeneralMaximum file open problem with fopen Pin
DevendraC29-Sep-04 3:39
DevendraC29-Sep-04 3:39 
GeneralRe: Maximum file open problem with fopen Pin
David Crow29-Sep-04 4:23
David Crow29-Sep-04 4:23 
GeneralRe: Maximum file open problem with fopen Pin
Blake Miller29-Sep-04 4:34
Blake Miller29-Sep-04 4:34 
GeneralRe: Maximum file open problem with fopen Pin
Nicholas Cardi29-Sep-04 4:40
Nicholas Cardi29-Sep-04 4:40 
GeneralRe: Maximum file open problem with fopen Pin
Alan Chambers29-Sep-04 10:34
Alan Chambers29-Sep-04 10:34 
GeneralRe: Maximum file open problem with fopen Pin
DevendraC30-Sep-04 2:44
DevendraC30-Sep-04 2:44 
QuestionWhy this linker error? Pin
Jenie_net29-Sep-04 3:38
Jenie_net29-Sep-04 3:38 
Hello to all.
I'm a "Last-becomers" in VC++.
During my first try using MFC and VC++ ,I found this linker error.

------------------------------------------------------------------------
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
---------------------------------------------------------------------


What must I do to solve this problem?
My program isn't an application created by the MFC wizard.
It is small and i post it for let you know the caos that I had create.Cry | :((

-----------------------------------------------------------------------
MyFirst.h


class CMyFirst : public CWinApp
{
public:
virtual BOOL InitInstance();
};

//the window
class CMyMainWnd : public CFrameWnd
{
public:
CMyMainWnd();
protected:
afx_msg void OnPaint();
DECLARE_MESSAGE_MAP();
};
-------------------------------------------------------------------------


MyFirst.cpp

------------------------------------------------------------------------
#include<afxwin.h>
#include"myFirst.h"

CMyFirst first;

BOOL CMyFirst::InitInstance()
{
m_pMainWnd = new CMyMainWnd();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();

return true;
}

BEGIN_MESSAGE_MAP(CMyMainWnd,CFrameWnd)
ON_WM_PAINT()
END_MESSAGE_MAP()

CMyMainWnd::CMyMainWnd()
{
Create(NULL, _T("My beautiful application"));
}

void CMyMainWnd::OnPaint()
{
CPaintDC *dc=new CPaintDC(this);
CRect *rect=new CRect();
GetClientRect(rect);
dc->TextOut(30,30, CString (_T("La prima scemenza stucchevole")));
delete dc;
}
----------------------------------------------------------------------

I'm waiting for responses...
Thanks a LOT..

Jenie_net
AnswerRe: Why this linker error? Pin
Nicholas Cardi29-Sep-04 4:14
Nicholas Cardi29-Sep-04 4:14 
AnswerRe: Why this linker error? Pin
Bob Stanneveld29-Sep-04 6:37
Bob Stanneveld29-Sep-04 6:37 
AnswerRe: Why this linker error? Pin
Anonymous29-Sep-04 6:42
Anonymous29-Sep-04 6:42 
GeneralGetting the Width and Height of the View Pin
Neelesh K J Jain29-Sep-04 3:28
Neelesh K J Jain29-Sep-04 3:28 
GeneralRe: Getting the Width and Height of the View Pin
Manfred Staiger29-Sep-04 3:48
Manfred Staiger29-Sep-04 3:48 
GeneralRe: Getting the Width and Height of the View Pin
Neelesh K J Jain29-Sep-04 3:57
Neelesh K J Jain29-Sep-04 3:57 
GeneralRe: Getting the Width and Height of the View Pin
Manfred Staiger29-Sep-04 4:28
Manfred Staiger29-Sep-04 4:28 
GeneralOnVScroll() or OnMouseWheel() Pin
Jesper Knudsen29-Sep-04 3:17
Jesper Knudsen29-Sep-04 3:17 
GeneralCaption Bar and Control Box Pin
Kolpia29-Sep-04 3:07
Kolpia29-Sep-04 3:07 
GeneralRe: Caption Bar and Control Box Pin
Andrzej Markowski29-Sep-04 6:24
Andrzej Markowski29-Sep-04 6:24 
GeneralMFC MSG Pin
ANDYFA29-Sep-04 2:46
ANDYFA29-Sep-04 2:46 
GeneralRe: MFC MSG Pin
Manfred Staiger29-Sep-04 3:13
Manfred Staiger29-Sep-04 3:13 
GeneralRe: MFC MSG Pin
David Crow29-Sep-04 4:25
David Crow29-Sep-04 4:25 
GeneralRe: MFC MSG Pin
ANDYFA29-Sep-04 6:59
ANDYFA29-Sep-04 6:59 
GeneralRe: MFC MSG Pin
David Crow29-Sep-04 7:17
David Crow29-Sep-04 7:17 
GeneralRe: MFC MSG Pin
ANDYFA29-Sep-04 7:25
ANDYFA29-Sep-04 7:25 
GeneralRe: MFC MSG Pin
David Crow29-Sep-04 7:30
David Crow29-Sep-04 7:30 

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.