473,564 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VC2005 - Basic_MFC_app.o bj : error LNK2001: unresolved external symbol "public: static wchar_t * CTest::m_static 00" (?m_static00@CT est@@2PA_WA)

Hi All,

I have come across a problem with a bog std MFC app linking to bog std MFC
extension dll - both generated by the wizards. The code is set out below.

The trouble is with the static member variable of CTest.

Can anyone help?

Thanks

Sam

// test.hpp

// CTest

class AFX_CLASS_EXPOR T CTest : public CWnd

{

DECLARE_DYNAMIC (CTest)

public:

CTest();

virtual ~CTest();

protected:

DECLARE_MESSAGE _MAP()

public:

TCHAR * m_test00;

static TCHAR * m_static00;
//!!!!!!!!!!!!!!! !!!!!!!!!!!!!!! !!!!!!!!!!!!!!! !!!!!!!!!!!!!!! !!!!!!!!!!

};

// end of test.hpp

// test mfc extension dll code

// Test.cpp : implementation file

//

#include "stdafx.h"

#include "Test.hpp"

// CTest

IMPLEMENT_DYNAM IC(CTest, CWnd)

CTest::CTest()

: m_test00(_T("m_ test00 OK"))

{

}

CTest::~CTest()

{

}

TCHAR * CTest::m_static 00(_T("m_static 00 OK"));

BEGIN_MESSAGE_M AP(CTest, CWnd)

END_MESSAGE_MAP ()

// end Test.cpp

// test mfc app code

#include "test.hpp"

CTest test;

MessageBox(0, CTest::m_static 00, test.m_test00, MB_OK);

// end of test mfc extension code

Error message:

Basic_MFC_app.o bj : error LNK2001: unresolved external symbol "public:
static wchar_t * CTest::m_static 00" (?m_static00@CT est@@2PA_WA)


Apr 25 '06 #1
0 1406

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

Similar topics

3
6064
by: We need more power captain | last post by:
Hi, I know less than a noob, I've been asked to do some compiles in VC++ 6 without knowing too much at all. (I'm a COBOL program normally so this is all too much for me) I open VC++6, open the workspace and then: Build>Batch Build
2
8696
by: Faith | last post by:
hi guys, As you can understand from the subject the problem is the: error LNK2001: unresolved external symbol _errno Whats so wierd is that when i build the project "A" alone it works with no errors but when I build a project that has a dependency on project "A" that project fails with this error that accurs while building project "A". I...
1
7272
by: Alek Davis | last post by:
I am trying to build a DLL in VS.NET 2003 and it works fine in Debug mode. However, if I try to build it in Release mode, I get the following link error in several .obj files: error LNK2001: unresolved external symbol __HUGE I searched Google but could not find any information related to this. I have no references to this symbol in my...
2
5155
by: jpeters | last post by:
Just installed Service Pack 5 for Visual C++ 6.0. Now I'm getting an error when linking as follows: inking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/HW8.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. what happened? I wasn't having any linking errors before this...
0
1746
by: Franky | last post by:
Tried to build in VS2005 a program that builds OK in VS2003 and get errors like the following: Error 57 error LNK2001: unresolved external symbol _WinMainCRTStartup AnnGame Error 58 error LNK2001: unresolved external symbol __itoa OLDNAMES.lib
3
1817
by: Ed Dana | last post by:
Greetings, all. :) I'm familiar with other object oriented programming tools, such as Java & REBOL. In an effort to become more familiar with C++, I decided to write an object oriented BlackJack program. To begin with, I needed some simple static routines for telling the value or suite of a face card. So, I wrote the following C++ routine...
1
6425
by: Vishu7 | last post by:
Hi, I am porting my code which is written in VC2005( c++) to WinCE 5.0. When i build my project i get this error AACDec.def : error LNK2001: unresolved external symbol DllCanUnloadNow AACDec.def : error LNK2001: unresolved external symbol DllGetClassObject i have include all necessary library and include files. I didn't this ...
0
456
by: =?Utf-8?B?TWF0ZXVzeiBSYWpjYQ==?= | last post by:
Hi! How can I fix this error? Error 1 error LNK2001: unresolved external symbol "extern "C" long __stdcall SHFlushClipboard(void)" (?SHFlushClipboard@@$$J10YGJXZ) UnmanagedTest.obj Basically I am calling the SHFlushClipboard method from "shlobj.h" (Win32) in a managed c++ app. ~Matt
5
4781
by: bonnielym84 | last post by:
Im new here..didnt noe whether is this the rite way to post my problem..Really need help here..i've been stucked in this error from last wk..My problem is like this..Im using VC++ 6.0 to compile my C codes so that i could generate a dll file out of it and used in my C# program.. When I compile, got no error and no warning. But when i build it, i...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.