473,698 Members | 2,491 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 1413

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

Similar topics

3
6070
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
8707
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 will be grateful if you can help, Thanks in advance, Faith
1
7277
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 code. Any ideas? Thanks in advance,
2
5166
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 patch. help!!!
0
1751
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 for Suites: ====================================================================== class Suite {...
1
6434
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 type of in VS2005 (c++), please anyone who have worked directshow in wince , help.
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
4792
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 have these errors.. *beginning* sendrcv.obj : error LNK2001: unresolved external symbol "int...
0
8608
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9161
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8867
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7732
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6522
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4370
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.