Im trying to learn to use the CString class is VC++ 6, heres the very basic code that wont compile right, and i dont understand it.
#include "stdafx.h"
#include "afx.h"
#include <iostream.h>
int main(int argc, char* argv[])
{
CString strText = "This is a test text string";
CString strPart = strText.Left(10);
cout << strPart;
return 0;
}
Here is the debugger output:
Compiling...
test.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/test.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Any idea on how to fix this would be appreciated, thanks.
#include "stdafx.h"
#include "afx.h"
#include <iostream.h>
int main(int argc, char* argv[])
{
CString strText = "This is a test text string";
CString strPart = strText.Left(10);
cout << strPart;
return 0;
}
Here is the debugger output:
Compiling...
test.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/test.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Any idea on how to fix this would be appreciated, thanks.
