chpicker
Programmer
- Apr 10, 2001
- 1,316
I'm fairly new at C++ and trying to learn a little bit at a time. I need the ability to create dynamic strings (strings that can change length during program execution), and don't feel comfortable writing my own string class yet, so I did a search through MSDN and found the CString class, which looks like it would suit my needs. According to the help file, I need to #include <afx.h> in order to use it. However, the simple act of putting this line at the beginning of my program causes the linker to give the following errors:
This doesn't happen to me if I #include the header file in a blank C++ program (
), so it must have something to do with my actual program. Any suggestions?
Code:
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Code:
void main(){return;}