المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Find out if CString type is available in a project



C++ Programming
11-20-2009, 11:53 AM
Hi, I have code that includes a function which makes sense only if CString is available, and I'm using the same code in 1 project where MFC is enabled and in 1 where it isn't. I need to make sure that the code is enabled only if the project is with MFC, i.e.

#ifdef CSTRING_IS_AVAILABLE

...

#endif


There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal