I think it is for both, I might give it a try, and in anywy the name that you put in a text box can be converted, maybe you will have problem with CString, but that is not a hard work to convert (thinking c++ way)
if you think it is good to do it in this way, let me know, so I can try and make a c++ code for you, maybe it will be your first program in c++ 😉