Been meaning to ask that question for a long time. With Visual Studio 6 I seem to recall I had to include iostream.h to use the CString class. Do I have that right? I think I also had to specify in a configuration dialog that I wanted to either link statically or dynamically with MFC.dll. Do I have that right?
About five weeks ago I got myself Visual Studio Pro 2008 and I've been just setting up my projects as empty C++ Win32 console or Gui projects as the case may be without MFC support. Naturally, I don't have access to the CString class that way.
My questions are as follows:
1) What is the relationship between iostream.h and MFC? Can the one be used without the other?
2) Is it possible to use the CString class without MFC? Last I recall, the MFC library was upwards of a MB or bigger. I'm not an MFC user at all, but if I could access the CString Class without it, I'd consider it.
3) I just set up a VC9 C++ project (console) where I specified I didn't want to use MFC. However, on the later screen where you would check "Empty File" I checked "Add MFC Support". What I ended up with was a lot of wizzard generated code where both iostream.h and stdio.h were included, and when I declared a CString variable I didn't get an error on compile. However, the resulting Release Build exe file was only 9 or 10 K or so but I'm wondering if its statically linked with MFC? I'm confused about this and would greatly appreciate some enlightenment on tis topic.
To give more info on where I'm coming from, I'd consider using the professionally created CString class in my programming, but not if its going to cost me having to link with or include the MFC.dll. I have my own String Class I've created over the years that's pretty good and only adds next to nothing to my programs. However, I know its not as good as a professionally developed one.
Edited 7 Years Ago by Frederick2: n/a