| 发表于:2007-03-23 10:39:58 楼主 |
question: i am using a windows service program to open a cfiledialog. the normal operation of the file dialog works fine except that: 1. when choosing my documents, it goes to "c:\documents and settings\default user\my documents " instead of the logged in user 's my documents folder (e.g. "c:\documents and settings\administrator\my documents ") 2. when choosing desktop, it goes to "c:\documents and settings\all users\desktop " instead of the logged in user 's desktop folder (e.g. c:\documents and settings\administrator\desktop) 3. when clicking on the create new folder icon, no new folder icon is displayed until f5 is pressed 4. after changing the folder/file name in the dialog, the displayed name turned back to the original name. after pressing f5, the displayed name updates to the new name. 5. after deleting the folder/file in the dialog, the icon still exists in the dialog until f5 is pressed when i copy the code using cfiledialog to a non-service application program, the above problems do not appear. does anyone know how to solve the problem? thanks!! |
|
|
|
|