I found a problem with CString in ActiveX control
While I using a Cstring in propPage,
the member method Left() can can be used.
but In .....Ctrl.cpp page, this method dose not work.
while in PropPage, str is "C:\\Documents and Settings";
but in ...Ctrl.cpp, str is still "C:\\Documents and Settings\\LEVI".
This is why?
another question:
I need to get the path"C:\\Documents and Settings\\All Users", there is a macro
CSIDL_PROFILE to return the current path like "C:\\Documents and Settings\\LEVI",
there was another macro CSIDL_PROFILES to return what I want, but this one does not exists in VC 2003,I didn't found it.
Any one can help to get this path "C:\\Documents and Settings\\All Users" ?