|
hi, all
a problem trouble me for a long time.
and i have been looking for the answer for a long time.
but i still can't solve it,i hope somebody can give me a
little suggestion. thanks in advance.
my dev platform: MFC 7 & Windows Server 2003
my question:
i want to subclass my checkbox on a dialogbar, and load my bitmap
to the checkbox's face.
all of my checkbox were set to push like style here
owner-draw mode was set to true .
in headfile MyDialogBar.h
====================================================
CBitmapButton m_btnCheck;<br />
BOOL InitButtons();
====================================================
in cppfile MyDialogBar.cpp
====================================================
BOOL CMyDialogBar::InitButtons()<br />
{<br />
<pre> m_btnCheck.SubclassDlgItem(IDC_TOOLBTN_SELECT, this);<br />
m_btnCheck.LoadBitmaps(IDB_BITMAP_ICON_SELECT);</pre><br />
}
====================================================
in headfile MainFrm.h
====================================================
CMyDialogBar m_myDlgbar;
====================================================
in cppfile MainFrm.cpp
====================================================
int CMainFrm::OnCreate(...)<br />
{<br />
<pre> if(!m_myDlgbar.Create(...))<br />
{<br />
TRACE0("sorry >_< ");<br />
return -1;<br />
}; <br />
m_myDlgbar.InitButtons();</pre><br />
}
====================================================
Notes:
IDB_BITMAP_ICON_SELECT is a ID of bitmap resource file created by resource editor , i want this bitmap loaded on the checkbox button.
IDC_TOOLBTN_SELECT is the ID of the CheckBox
the checkbox can works fine, but i just cannot put my bitmap on it. why??
i used to subclass my checkbox and load a bitmap on its face for many times
in common dialog application , there is no problems. why i use it in dialogbar, it doesn't work, and no error occured , the checkbox button works
fine.
i found something seems to be useful on MS KB, i rewrite my code , and it still does not work,
http://support.microsoft.com/kb/185672
anybody here met this problems before?
can you get me out of this swamp ? can anybody post some related sample code or links here ? thank you very much
any suggestion should be appreciated!
sincerely,
nickong
Today is a gift, that's why we call it present
|
|
|
|
|
any help?
Today is a gift, that's why we call it present
|
|
|
|
|
Hi all,
Hoping someone has experienced this problem and knows of a solution or can
explain whats going on...
I have tried using both a managed c# wrapper taken from the Microsoft SSPI
Samples and unmanaged C++ to test how SSPI and Kerberos works.
It appears to all work quite nicely except for when I try to trip it up.
Imagine the case where the client is running as User A and wishes to connect
to User B. On the client side, I make a request to InitializeSecurityContext
to User B and begin the handshaking process. However, the server is actually
running as User A as well. I would expect the authentication to fail every
time, it doesn't. If the machine has just been rebooted, it seems to "work",
in that I get a SEC_E_WRONG_CREDENTIAL result on the client side. However if
I lock the computer and then unlock it (or even after a restart on a W2K3
domain) the context is successfully established.
Anyone experienced this before or know why it happens?
As for replicating the "issue", use the MS .NET Remoting SSPI sample
client/server control panels to replicate the scenario explained above.
Any suggestions, explanations, workarounds would be appreciated.
P.S. I'm running the code under a Windows 2000 domain (same
happens on a W2K3 domain as well).
|
|
|
|
|
Hi, I want to change background color from list control when it's disabled (WS_DISABLED)--> default gray. I create list control without dialog editor but on the fly
(*.h)
CListCtrl *m_List;
(*.cpp)
if (!m_List->Create(WS_VISIBLE | WS_DISABLED | LVS_LIST))
{
// error
return 0;
}
Thank you for your help.
|
|
|
|
|
Respected all
Regards!
I am a begginers programmer n VC++.
I have a problem
" I have to display some data on different places on a bitmap at run time, i think I did all that's show bitmap using BitBlt(), and also using
TextOut(x,y,string value),to display data on a Bitmap but when i run program
while using the above procedure when i execute the program the run time window did not become stable i.e the run time window finish by itself after one second.
hope now things will b easy to undersatnd
waiting for + response.
david
|
|
|
|
|
|
how do I find out if I am running as a console program or a windows program?
|
|
|
|
|
|
Jose Lamas Rios wrote:
I'm not sure why you need that and in what context
Depending on whether I am running as a console app or a windows app, I want my logger to write to stdout or to a log file. Any ideas for doing this?
|
|
|
|
|
What is your logger? Is it a library or DLL? If so, any app you write (and you know if you are making a console or GUI app) can initialize the logger with that information... What I am missing?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Flace wrote:
I want my logger to write to stdout or to a log file. Any ideas for doing this?
Maybe calling GetStdHandle()? If the application doesn't have associated standard handles, it will return NULL...
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Check out MSDN article Q90493.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I chose to ask this question here as the language I'm using is C++.
Scenario:
I'm using an ActiveX control that fires an event called Error
How do I wire a function to be called when that event fies?
I've looked in a few places, but most articles either don't cover what I need or basically represent complete tutorials on COM when this is something I need to get done by tomorrow.
Thanks so much for anyone that can help me out.
|
|
|
|
|
I should also mention that I'm using the #import directive on the .ocx from my main .cpp file (my app is a service).
|
|
|
|
|
|
Thanks, but that article is precisely one of the problems I'm running into. It's an article based on an older version of Visual Studio and so is obsolete
Tom Archer - Visual C++ MVP
Archer Consulting Group.com
|
|
|
|
|
I want to open a document from within my CDocument derived class (MDI App). How do I do this?
From what I've read when I was trying to solve this, CWinApp calls CDocManager, which then uses CDocTemplate, and then OnOpenDocument. But, how do I do all this from within my CMyDoc class?
Thanks
|
|
|
|
|
|
This doesn't work, I just get a debug assertion.
Any other ideas?
|
|
|
|
|
vasanth1004 wrote:
This doesn't work, I just get a debug assertion.
Any other ideas?
What about breaking with the debugger at the debug assertion, looking at the variables and call stack, and determining what assertion is failing and why?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
I have a structure of TCHARS like:
typedef struct _tagInfo
{
TCHAR szBikeBrand[24];
TCHAR szBikeStyle[24];
} BikeInfo;
But i also have an std::string BikeBrand.
I would like to copy the value of BikeBrand to szBikeBrand.
I am doing this
BikeInfo* pBikeInfo = new BikeInfo;
_tcscpy(pBikeInfo->szBikeBrand, _T(BikeBrand));
This does not work. How would i accomplish this copy?
|
|
|
|
|
If you are compiling for both UNICODE and ANSI (which I assume by looking at TCHAR and the use of the _T macro).
Then you should do something like this.
typedef std::basic_string<tchar> MyString;
MyString BikeBrand = _T("Avanti");
BikeInfo* pBikeInfo = new BikeInfo;
_tcscpy(pBikeInfo->szBikeBrand, BikeBrand.c_str());
Also get into a habit of using _tcsncpy.
But it might be more suitable to do this.
struct BikeInfo
{
MyString szBikeBrand;
MyString szBikeStyle;
};
MyString BikeBrand = _T("Avanti");
BikeInfo* pBikeInfo = new BikeInfo;
pBikeInfo->szBikeBrand = BikeBrand;
|
|
|
|
|
I would be most gratefult if anyone could point me to some Vis C++ code for reading / displaying / editing electronic navigational charts, such as those supplied by NOAA. The latest available charts are in vector graphics format (C-MAP, NOS). Thanks very much.
Dr. John A. Freeman
|
|
|
|
|
I've encountered a few rather annoying problems when trying to use the new platform SDK, which I apparently, really need. So when I found myself in what seemed to be an unoverseeable mess, I decided to uninstall the sdk and reinstall and see if that helped any. Obviously it didn't. The installer said theres a SetEnv.cmd file included to set my environment variables so Visual Studio would be able to use the sdk properly. So after the install, I run SetEnv. I check my Environment variables via System->ENvironment variables (Include, Path, Lib etc..), both user and system variables, what do I see, nothing, a single entry to some older SDK or something. I open visual studio (I have .NET 2003 aka 7.1) and go to Tools->Options->Projects->Visual C++ Build directories and as expected see my entire list of include directories, lib directories and executable directories. The funny thing is, at the bottom of the dialog it says, and I quote:
Path to use when searching for include files while building a VC++ project. Corresponds to environment variable INCLUDE.
Corresponds to environment variable INCLUDE... then why is it that when I check it there's only one lousy entry not much to do with anything even..? Is Visual Studio storing them somewhere else? Cause I'd hardly suspect my System control panel of cheating.
Then I have another annoying problem. Whats with the 'new' iostream and standard C library routines? Apparently they rewrote some of them? And decided it was better to go and start cluttering them around some, as to make our lives even a bit more troublesome? First I had a problem cause I was trying to compile a project that was using the old iostream.h include file and msdn says to use the new library u need to include iostream, without .h part. Now when I did that it worked fine. But what I dont get is why it didnt work fine with the iostream.h one, cause then I got a linker error for libcimtd.lib. but when I looked in my platform SDK folder I didnt find any file like that. actually there was a whole bunch of libcp, libcmt, libctd etc files but none with an aditional 'i' in it.. So what the hell are they trying to pull. But whatever, I wasn't that bothered yet cause it worked with iostream. Its only now that it started to really piss me off, when I tried to compile another project, which didnt use MFC or anything, and I got loads of linker errors:
Linking...
libcpmtd.lib(locale0.obj) : error LNK2005: "public: __thiscall std::locale::locale(void)" (??0locale@std@@QAE@XZ) already defined in IniFile.obj
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ) referenced in function __unwindfunclet$??0CIniFile@@QAE@XZ$0
InterfaceDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ)
LoginDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ)
Revo Client.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ) referenced in function "public: __thiscall CIniFile::CIniFile(void)" (??0CIniFile@@QAE@XZ)
InterfaceDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ)
LoginDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: class CString const & __thiscall CString::operator=(class CString const &)" (??4CString@@QAEABV0@ABV0@@Z) referenced in function "public: __thiscall CIniFile::CIniFile(class CString)" (??0CIniFile@@QAE@VCString@@@Z)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: class CString const & __thiscall CString::operator=(class CString const &)" (??4CString@@QAEABV0@ABV0@@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(class CString const &)" (??0CString@@QAE@ABV0@@Z) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(class CString const &)" (??0CString@@QAE@ABV0@@Z) referenced in function "public: __thiscall CRevoClientDlg::CRevoClientDlg(class CWnd *)" (??0CRevoClientDlg@@QAE@PAVCWnd@@@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: class CString __thiscall CString::Right(int)const " (?Right@CString@@QBE?AV1@H@Z) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: class CString __thiscall CString::Right(int)const " (?Right@CString@@QBE?AV1@H@Z) referenced in function "public: __thiscall CRevoClientDlg::CRevoClientDlg(class CWnd *)" (??0CRevoClientDlg@@QAE@PAVCWnd@@@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: void __thiscall CString::TrimRight(void)" (?TrimRight@CString@@QAEXXZ) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: class CString __thiscall CString::Left(int)const " (?Left@CString@@QBE?AV1@H@Z) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: class CString __thiscall CString::Left(int)const " (?Left@CString@@QBE?AV1@H@Z) referenced in function "public: __thiscall CRevoClientDlg::CRevoClientDlg(class CWnd *)" (??0CRevoClientDlg@@QAE@PAVCWnd@@@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: int __thiscall CString::Find(char const *)const " (?Find@CString@@QBEHPBD@Z) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CString::Find(char const *)const " (?Find@CString@@QBEHPBD@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: void __thiscall CString::TrimRight(char)" (?TrimRight@CString@@QAEXD@Z) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: void __thiscall CString::TrimLeft(char)" (?TrimLeft@CString@@QAEXD@Z) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: int __thiscall CString::GetLength(void)const " (?GetLength@CString@@QBEHXZ) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
LoginDlg.obj : error LNK2019: unresolved external symbol "public: int __thiscall CString::GetLength(void)const " (?GetLength@CString@@QBEHXZ) referenced in function "protected: void __thiscall CLoginDlg::OnSize(unsigned int,int,int)" (?OnSize@CLoginDlg@@IAEXIHH@Z)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CString::GetLength(void)const " (?GetLength@CString@@QBEHXZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: char __thiscall CString::operator[](int)const " (??ACString@@QBEDH@Z) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: char __thiscall CString::operator[](int)const " (??ACString@@QBEDH@Z)
IniFile.obj : error LNK2019: unresolved external symbol "bool __stdcall operator!=(class CString const &,char const *)" (??9@YG_NABVCString@@PBD@Z) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
InterfaceDlg.obj : error LNK2001: unresolved external symbol "bool __stdcall operator!=(class CString const &,char const *)" (??9@YG_NABVCString@@PBD@Z)
LoginDlg.obj : error LNK2019: unresolved external symbol "bool __stdcall operator!=(class CString const &,char const *)" (??9@YG_NABVCString@@PBD@Z) referenced in function "protected: void __thiscall CLoginDlg::OnSize(unsigned int,int,int)" (?OnSize@CLoginDlg@@IAEXIHH@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: void __thiscall CString::TrimLeft(void)" (?TrimLeft@CString@@QAEXXZ) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
InterfaceDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CString::TrimLeft(void)" (?TrimLeft@CString@@QAEXXZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: class CString const & __thiscall CString::operator=(char const *)" (??4CString@@QAEABV0@PBD@Z) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
InterfaceDlg.obj : error LNK2001: unresolved external symbol "public: class CString const & __thiscall CString::operator=(char const *)" (??4CString@@QAEABV0@PBD@Z)
LoginDlg.obj : error LNK2019: unresolved external symbol "public: class CString const & __thiscall CString::operator=(char const *)" (??4CString@@QAEABV0@PBD@Z) referenced in function "protected: void __thiscall CLoginDlg::OnSize(unsigned int,int,int)" (?OnSize@CLoginDlg@@IAEXIHH@Z)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: class CString const & __thiscall CString::operator=(char const *)" (??4CString@@QAEABV0@PBD@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ) referenced in function "public: bool __thiscall CIniFile::ReadFile(void)" (?ReadFile@CIniFile@@QAE_NXZ)
InterfaceDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ)
LoginDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: __thiscall CTime::CTime(void)" (??0CTime@@QAE@XZ) referenced in function "public: __thiscall CFileStatus::CFileStatus(void)" (??0CFileStatus@@QAE@XZ)
IniFile.obj : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(char const *)" (??0CString@@QAE@PBD@Z) referenced in function "public: class CString __thiscall CIniFile::GetValue(class CString,class CString)" (?GetValue@CIniFile@@QAE?AVCString@@V2@0@Z)
InterfaceDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(char const *)" (??0CString@@QAE@PBD@Z)
LoginDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(char const *)" (??0CString@@QAE@PBD@Z)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(char const *)" (??0CString@@QAE@PBD@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: void __cdecl CString::Format(char const *,...)" (?Format@CString@@QAAXPBDZZ) referenced in function "public: bool __thiscall CIniFile::SetValueI(class CString,class CString,int,bool)" (?SetValueI@CIniFile@@QAE_NVCString@@0H_N@Z)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: void __cdecl CString::Format(char const *,...)" (?Format@CString@@QAAXPBDZZ)
IniFile.obj : error LNK2019: unresolved external symbol "bool __stdcall operator!=(class CString const &,class CString const &)" (??9@YG_NABVCString@@0@Z) referenced in function "private: int __thiscall CIniFile::FindKey(class CString)" (?FindKey@CIniFile@@AAEHVCString@@@Z)
IniFile.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::erase(unsigned int,unsigned int)" (?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z)
IniFile.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ) referenced in function "private: bool __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAE_NI_N@Z)
IniFile.obj : error LNK2001: unresolved external symbol "private: static class std::locale::_Locimp * std::locale::_Locimp::_Global" (?_Global@_Locimp@locale@std@@0PAV123@A)
IniFile.obj : error LNK2019: unresolved external symbol "struct _iobuf * __cdecl std::__Fiopen(char const *,int)" (?__Fiopen@std@@YAPAU_iobuf@@PBDH@Z) referenced in function "public: class std::basic_filebuf<char,struct std::char_traits<char> > * __thiscall std::basic_filebuf<char,struct std::char_traits<char> >::open(char const *,int)" (?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDH@Z)
IniFile.obj : error LNK2001: unresolved external symbol "__int64 const std::_Fpz" (?_Fpz@std@@3_JB)
IniFile.obj : error LNK2019: unresolved external symbol "protected: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@IAEXXZ) referenced in function "protected: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::init(class std::basic_streambuf<char,struct std::char_traits<char> > *,bool)" (?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: bool __thiscall std::locale::_Iscloc(void)const " (?_Iscloc@locale@std@@QBE_NXZ) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &,class std::ctype<char> const *,bool)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@PBV10@_N@Z)
IniFile.obj : error LNK2019: unresolved external symbol "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned int,bool)const " (?_Getfacet@locale@std@@QBEPBVfacet@12@I_N@Z) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &,class std::ctype<char> const *,bool)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@PBV10@_N@Z)
IniFile.obj : error LNK2001: unresolved external symbol "private: static short const * const std::ctype<char>::_Cltab" (?_Cltab@?$ctype@D@std@@0PBFB)
IniFile.obj : error LNK2019: unresolved external symbol "void __stdcall ConstructElements<class CString>(class CString *,int)" (??$ConstructElements@VCString@@@@YGXPAVCString@@H@Z) referenced in function "public: void __thiscall CArray<class CString,class CString>::SetSize(int,int)" (?SetSize@?$CArray@VCString@@V1@@@QAEXHH@Z)
IniFile.obj : error LNK2019: unresolved external symbol "void __stdcall DestructElements<class CString>(class CString *,int)" (??$DestructElements@VCString@@@@YGXPAVCString@@H@Z) referenced in function "public: void __thiscall CArray<class CString,class CString>::SetSize(int,int)" (?SetSize@?$CArray@VCString@@V1@@@QAEXHH@Z)
IniFile.obj : error LNK2019: unresolved external symbol "void __stdcall SerializeElements<class CString>(class CArchive &,class CString *,int)" (??$SerializeElements@VCString@@@@YGXAAVCArchive@@PAVCString@@H@Z) referenced in function "public: virtual void __thiscall CArray<class CString,class CString>::Serialize(class CArchive &)" (?Serialize@?$CArray@VCString@@V1@@@UAEXAAVCArchive@@@Z)
InterfaceDlg.obj : error LNK2019: unresolved external symbol "void __stdcall DDV_MaxChars(class CDataExchange *,class CString const &,int)" (?DDV_MaxChars@@YGXPAVCDataExchange@@ABVCString@@H@Z) referenced in function "protected: virtual void __thiscall CInterfaceDlg::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CInterfaceDlg@@MAEXPAVCDataExchange@@@Z)
LoginDlg.obj : error LNK2001: unresolved external symbol "void __stdcall DDV_MaxChars(class CDataExchange *,class CString const &,int)" (?DDV_MaxChars@@YGXPAVCDataExchange@@ABVCString@@H@Z)
InterfaceDlg.obj : error LNK2019: unresolved external symbol "void __stdcall DDX_Text(class CDataExchange *,int,class CString &)" (?DDX_Text@@YGXPAVCDataExchange@@HAAVCString@@@Z) referenced in function "protected: virtual void __thiscall CInterfaceDlg::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CInterfaceDlg@@MAEXPAVCDataExchange@@@Z)
LoginDlg.obj : error LNK2001: unresolved external symbol "void __stdcall DDX_Text(class CDataExchange *,int,class CString &)" (?DDX_Text@@YGXPAVCDataExchange@@HAAVCString@@@Z)
InterfaceDlg.obj : error LNK2019: unresolved external symbol "class CString __stdcall operator+(class CString const &,char const *)" (??H@YG?AVCString@@ABV0@PBD@Z) referenced in function "public: void __thiscall CInterfaceDlg::ChatViewOutput(class CString)" (?ChatViewOutput@CInterfaceDlg@@QAEXVCString@@@Z)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "class CString __stdcall operator+(class CString const &,char const *)" (??H@YG?AVCString@@ABV0@PBD@Z)
InterfaceDlg.obj : error LNK2019: unresolved external symbol "class CString __stdcall operator+(class CString const &,class CString const &)" (??H@YG?AVCString@@ABV0@0@Z) referenced in function "public: void __thiscall CInterfaceDlg::ChatViewOutput(class CString)" (?ChatViewOutput@CInterfaceDlg@@QAEXVCString@@@Z)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "class CString __stdcall operator+(class CString const &,class CString const &)" (??H@YG?AVCString@@ABV0@0@Z)
InterfaceDlg.obj : error LNK2019: unresolved external symbol "public: void __thiscall CWnd::GetWindowTextA(class CString &)const " (?GetWindowTextA@CWnd@@QBEXAAVCString@@@Z) referenced in function "public: void __thiscall CInterfaceDlg::ChatViewOutput(class CString)" (?ChatViewOutput@CInterfaceDlg@@QAEXVCString@@@Z)
LoginDlg.obj : error LNK2019: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(class CString const &)" (??YCString@@QAEABV0@ABV0@@Z) referenced in function "public: void __thiscall CLoginDlg::SetStatus(class CString)" (?SetStatus@CLoginDlg@@QAEXVCString@@@Z)
Revo ClientDlg.obj : error LNK2001: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(class CString const &)" (??YCString@@QAEABV0@ABV0@@Z)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: int __thiscall CString::IsEmpty(void)const " (?IsEmpty@CString@@QBEHXZ) referenced in function "protected: virtual int __thiscall CRevoClientDlg::OnInitDialog(void)" (?OnInitDialog@CRevoClientDlg@@MAEHXZ)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: int __thiscall CString::LoadStringA(unsigned int)" (?LoadStringA@CString@@QAEHI@Z) referenced in function "protected: virtual int __thiscall CRevoClientDlg::OnInitDialog(void)" (?OnInitDialog@CRevoClientDlg@@MAEHXZ)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: int __thiscall CDialog::Create(unsigned int,class CWnd *)" (?Create@CDialog@@QAEHIPAVCWnd@@@Z) referenced in function "protected: void __thiscall CRevoClientDlg::DisplayLoginWnd(void)" (?DisplayLoginWnd@CRevoClientDlg@@IAEXXZ)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(char const *)" (??YCString@@QAEABV0@PBD@Z) referenced in function "protected: virtual long __thiscall CRevoClientDlg::WindowProc(unsigned int,unsigned int,long)" (?WindowProc@CRevoClientDlg@@MAEJIIJ@Z)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: class CString const & __thiscall CString::operator+=(char)" (??YCString@@QAEABV0@D@Z) referenced in function "public: void __thiscall CRevoClientDlg::OnSocketReceive(void)" (?OnSocketReceive@CRevoClientDlg@@QAEXXZ)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: void __thiscall CString::Empty(void)" (?Empty@CString@@QAEXXZ) referenced in function "public: void __thiscall CRevoClientDlg::OnSocketReceive(void)" (?OnSocketReceive@CRevoClientDlg@@QAEXXZ)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "bool __stdcall operator==(class CString const &,char const *)" (??8@YG_NABVCString@@PBD@Z) referenced in function "protected: void __thiscall CRevoClientDlg::OnLogin(void)" (?OnLogin@CRevoClientDlg@@IAEXXZ)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: class CString __thiscall CString::Mid(int)const " (?Mid@CString@@QBE?AV1@H@Z) referenced in function "protected: void __thiscall CRevoClientDlg::OnReceiveCommand(class CString)" (?OnReceiveCommand@CRevoClientDlg@@IAEXVCString@@@Z)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "public: int __thiscall CString::Find(char)const " (?Find@CString@@QBEHD@Z) referenced in function "protected: void __thiscall CRevoClientDlg::OnReceiveCommand(class CString)" (?OnReceiveCommand@CRevoClientDlg@@IAEXVCString@@@Z)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "int __stdcall AfxExtractSubString(class CString &,char const *,int,char)" (?AfxExtractSubString@@YGHAAVCString@@PBDHD@Z) referenced in function "protected: void __thiscall CRevoClientDlg::OnReceiveCommand(class CString)" (?OnReceiveCommand@CRevoClientDlg@@IAEXVCString@@@Z)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "class CString __stdcall operator+(char const *,class CString const &)" (??H@YG?AVCString@@PBDABV0@@Z) referenced in function "protected: void __thiscall CRevoClientDlg::ChatSysMessage(class CString)" (?ChatSysMessage@CRevoClientDlg@@IAEXVCString@@@Z)
Revo ClientDlg.obj : error LNK2019: unresolved external symbol "bool __stdcall operator==(class CString const &,class CString const &)" (??8@YG_NABVCString@@0@Z) referenced in function "protected: bool __thiscall CRevoClientDlg::RemoveUser(class CString)" (?RemoveUser@CRevoClientDlg@@IAE_NVCString@@@Z)
.\Debug/Revo Client.exe : fatal error LNK1120: 50 unresolved externals
Most seemingly to do with CString. Now that was in Static linking mode. When I try to link dynamically, it becomes even funnier, I simply get:
Linking...
LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'
So.. please help me, because I am getting insanely tired...
Kuniva
--------------------------------------------
|
|
|
|
|
Anyone else using scrum[^]? We're beginning to use it at our company and I was wondering if any CPians had good/bad stories to share.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib@ravib.com
|
|
|
|
|