Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - Link Error/Resource file/VC++6
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Link Error/Resource file/VC++6

 Post Reply Post Reply
Author
Message
s_rookie View Drop Down
Newbie
Newbie


Joined: 23 May 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote s_rookie Quote  Post ReplyReply Direct Link To This Post Topic: Link Error/Resource file/VC++6
    Posted: 24 May 2005 at 1:00pm
Pls Guide me i have problem in compiling.

/*When i build the following project i get a link error which says

"""Compiling resources...
Compiling...
file1.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/myproject1.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

myproject1.exe - 3 error(s), 0 warning(s)"""
*/


#include<afxwin.h>

class myframe:public CFrameWnd

{
public:
myframe()
{
Create(0,"Hello");
}


void OnLButtonDown(UINT i,CPoint p)
{
char c[100];
sprintf(c,"p.x=%d p.y=%d",p.x,p.y);
::MessageBox(0,c,"ln OnLButtonDown()",0);

}

DECLARE_MESSAGE_MAP()
};

BEGIN_MESSAGE_MAP(myframe,CFrameWnd)
ON_WM_LBUTTONDOWN()
END_MESSAGE_MAP()


class mywin:public CWinApp

{

public:
BOOL InitInstance()
{
myframe *my;
my= new myframe;
my->ShowWindow(3);
m_pMainWnd=my;
return TRUE;
}
};

mywin a;

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \

resource.h is in the project folder but doesnt get displayed in the workspace.

Pls Guide me :
Edit/Delete Message
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.