Print Page | Close Window

Link Error/Resource file/VC++6

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=2276
Printed Date: 12 May 2024 at 10:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Link Error/Resource file/VC++6
Posted By: s_rookie
Subject: Link Error/Resource file/VC++6
Date 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 :
http://www.codeguru.com/forum/editpost.php?do=editpost&p=1159846">Edit/Delete Message



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net