CArray CStringarray CString without MFC

I have a server application where I need a directory watcher.  I have seen several but they all use some MFC functions.  As I understand it MFC can cause a problem in a service.  Is this True?  Assuming it is how do I replace the CArray and the other mfc functins.  Could you point me to a file watcher that does not use mfc functions.
Who is Participating?
Is MFC statically linked or dynamically linked in your application.  If it is statically linked, it shouldn't be a problem.  You could even run it on a win95 system and it will still work.

CStrings are now in the ATL library: not MFC.
you could replace CArray by std::vector what gives you additional functionality and stability.

the CString could be replaced by std::string or std::wstring depending on whether ANSI or UTF16 characterset was used in the mfc project.

Think it depends on whether the CStrings are just used as strings or whether the specialized MFC features like formatting are used.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.