473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

LNK 2001 in C++ .Net

I'm receiving error LNK 2001 with message
unresolved external symbol "unsigned long __cdecl _exception_code(void)" (?_exception_code@@$$FYAKXZ)
using C++ .Net in Visual Studio .Net 2003. I'm a beginner in C++, and the entire program code is below:

# include <afxwin.h> // contains definitions for core MFC componenents
// including definitions of CWinApp and CFrameWnd

class MyWindow:public CFrameWnd // creates frame window derived from CFrameWnd class
{
public:
MyWindow() // constructor
{
Create(NULL, "My Application Window"); //NULL passes default values of CFrameWnd
MessageBox("Window Created", "CFrameWnd Constructor");
}
};

class MyApp:public CWinApp // define application class derived from CWinApp class
{
public:
BOOL InitInstance() // override InitInstance and define application settings
{
MyWindow *MywindowObject = new MyWindow;
m_pMainWnd = MywindowObject; // m_pMainWnd points to main window, determines lifetime
MywindowObject->ShowWindow(SW_SHOWNORMAL);
return TRUE;
}
};
MyApp MyAppObject; // instantiate application class pointing to MyApp class

The code is copied from "Microsoft C++ .Net Professional Projects" from Premier Press which came out in 2002. Is this a difference between VS 2002 and 2003 ?

Thanks for any assistance,
Michael van Altena
Nov 17 '05 #1
0 1210

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bon Bon | last post by:
I am trying to run the Java PetStore Demo using clouldscape. But my default RMI registry port 1099 is taken by some other program. So I am running cloudscape on port 2001. But then the deployment...
1
by: pawel | last post by:
Hy! Is there any possibility to use Use .NET Framework 1.1 SDK with Visual Studio 7.0 (2001) ?.. On computer with older VS I have installed .NET SDK 1.1 and try to compile project for this...
1
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32...
3
by: Need Top Programmer | last post by:
Has anyone else encountered this issue? When you do Date.parse(date1) and date1=10/29/2001 it seems to add an an additional 3600000 ms for no reason. Thanks, Edward
13
by: Dr John Stockton | last post by:
Javascript date strings can have a one-letter postfix; it is taken as indicating time zone (not J, which causes NaN). // IIRC, VB accepts A & P in that location, for AM & PM. In my MS IE 4, the...
1
by: stoppal | last post by:
I have the below function written in VB, and everything works fine EXCEPT that the sql code is not executing correctly. The date field is in the table always shows "12/1/1899 11:59:17 PM" no other...
1
by: Bob Hynes | last post by:
Hi All, In access97 I have an unbound textbox with the format property set to 'short date' and an input mask of 99/99. In the after update event of the textbox I have code; me!textbox =...
2
by: =?Utf-8?B?Um92aXR0bw==?= | last post by:
I recently purchased a MacBookPro. When I loaded Office 2001 into the new computer, I got a message saying: This software is an upgrade to an earlier version of the software. To continue...
0
by: =?Utf-8?B?U3QgSm9obnMgaGVscA==?= | last post by:
We have years of accounts on money 2000 on old pc but want to transfer to new pc managed to get money 2001 disk as we had lost the old 2000 disc but everything tried so far hasn't worked it thinks...
3
by: kkshansid | last post by:
how to get grand total of two years 2001,2002 are fields SELECT sum( 2001 ) AS "2001-2002", sum( 2002 ) AS "2002-2003", ( "2001-2002" + "2002-2003" ) AS "grand total" FROM school this query...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.