sophtwarez
Programmer
So - does Microsoft support normal strings ala <string.h>?
As I go through the documentation it seems they have a special Win32 class called CString if you include <afx.h> but after including it I get serious linker problems when trying to execute.
Sample code:
#include <iostream.h>
#include <afx.h>
int main(){
CString t("this is a string"
return(0);
}
Error as follows:
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/point.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Got me stumped. I can use all the C standard stuff when I use the Borland Turbo Compiler, it just craps on me when I use Microsloth stuff.
As I go through the documentation it seems they have a special Win32 class called CString if you include <afx.h> but after including it I get serious linker problems when trying to execute.
Sample code:
#include <iostream.h>
#include <afx.h>
int main(){
CString t("this is a string"
return(0);
}
Error as follows:
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/point.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Got me stumped. I can use all the C standard stuff when I use the Borland Turbo Compiler, it just craps on me when I use Microsloth stuff.